add or create 'Subject Alternative Name' field to self-signed certificate using makecert

后端 未结 3 1806
再見小時候
再見小時候 2020-12-09 07:49

How can I create a certificate using makecert with a \'Subject Alternative Name\' field ?

\"enter

3条回答
  •  天涯浪人
    2020-12-09 08:49

    An even easier way is to use the New-SelfSignedCertificate PowerShell commandlet, which includes a SAN by default. In a single command you can create the certificate and add it to the store.

    New-SelfSignedCertificate -DnsName localhost -CertStoreLocation cert:\LocalMachine\My

    Note that you need to run PowerShell as an administrator.

提交回复
热议问题