我正在嘗試製作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