我正在尝试制作X.509证书。我正在使用makecert.exe来做到这一点。我用这个命令让我的X.509证书
如何制作X.509证书?
makecert.exe -sr LocalMachine -ss My -a sha1 -n CN=MyServerCert -sky exchange –pe
但我不`吨知道有X.509证书storeing。
我需要在我的c#代码中使用此X.509证书。代码是:
host.Credentials.ServiceCertificate.Certificate = new X509Certificate2("MyServerCert.p12", "password");
但我不知道密码是什么,它引发此异常“系统找不到指定的文件”。
非常感谢我的兄弟 – Vero009
链接已损坏。 https://www.pluralsight.com/blog/software-development/selfcert-create-a-self-signed-certificate-interactively-gui-or-programmatically-in-net可能是它的新位置。 – Theophilus
@Theophilus,thx,固定链接 – kroonwijk