如何使用新的自签名证书生成由根证书签名的自签名证书我有一个根证书我只想知道如何使用-Signer。
发布于 2020-12-05 19:41:58
您已经知道需要使用-Signer参数。只需确保您拥有要用来签署新证书的证书的私钥。因此,基本上只能使用Personal存储中的证书(PowerShell中的“My”)。
示例:
# find a suitable certificate to use as root
ls Cert:\CurrentUser\My\
$root = ls Cert:\CurrentUser\My\c123a6f16a5f165161a1... # use the thumbprint of one of your certificates
# create a certificate which is signed with your chosen root certificate
New-SelfSignedCertificate -DnsName test.local -Signer $root -CertStoreLocation Cert:\CurrentUser\My\https://stackoverflow.com/questions/65155869
复制相似问题