My certificate is stored in a custom store under "Certificates(Local Computer)" instead of under "Personal".
Normally, if the cert is located under personal, i just use C:>netsh http add sslcert ipport:0.0.0.0: certhash= appid= certstorename=MY
where, certstorename=MY is already assumed by default if not specified.
This works fine until we were required to store the certificate in a custom store other than the existing personal, trusted people, trusted publishers, etc. etc.
i checked the System.Security.Cryptography.X509Certificates namespace and there exises an enum called StoreName with the following values:
I tried all of them on the netsh command as certstorename and i always get this error:
SSL Certificate add failed, Error:1312 A specified logon session does not exist. It may already have been terminated.
As stated above, SSL does not have any specific port, but the HTTPS protocol, which uses SSL security, uses port 443. So, HTTPS indicates the existence of an SSL certificate in the URL. Data communication can be done with or without the existence of an SSL certificate.
What you are trying to do seems correct. Could you retry after applying hotfix http://support.microsoft.com/kb/981506 for a problem which actually matches your symptoms exactly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With