Can't register a C# generated selfsigned SSL certificate with netsh (error 1312)
问题 I have created a self-signed SSL certificate via C# (bouncycastle). It shows up in the local computer / personal store and looks exactly like the already existing localhost certificate from Microsoft. If I show the properties, it says: SSL Certificate add failed, Error: 1312 A specified logon session does not exist. It may already have been terminated. However, if I want to register this certificate via netsh, I get an error: netsh.exe http add sslcert ipport=0.0.0.0:{0} certhash={1} appid={2