【发布时间】:2016-08-12 12:29:07
【问题描述】:
下面的PowerShell command 创建一个以SHA1 作为签名算法的自签名证书。
New-SelfSignedCertificate -DnsName "MyCertificate", "www.contoso.com" -CertStoreLocation "cert:\LocalMachine\My" -Provider "Microsoft Strong Cryptographic Provider"
是否有任何值可以传递给此命令(例如:-KeyAlgorithm)以使用 SHA256 作为签名算法生成证书?
【问题讨论】:
标签: .net powershell msdn x509certificate2