IT Blog

SSL Certificate add failed, Error: 1312

by on Mar.25, 2011, under Microsoft

You are trying to bind SSL certificate ot a port number using the the following command:
netsh http add sslcert ipport= certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={00112233-4455-6677-8899-AABBCCDDEEFF}

The command failes with error:
SSL Certificate add failed, Error: 1312
A specified logon session does not exist. It may already have been terminated.

The most likely problemis that the certificate that you are using does not have the private key. To make sure the certificate has a private key open the certificate with the thumbprint that was defined in command line and look if private key is present:

If the private key is not present then you have to go to CA export the certificate and include private key. Then you need to re import it to the host and run command again.
If the certificate already has private key and you are running Windows 2008 R2 or Windows 7 then you might take a look at KB981506

:, ,

1 Comment for this entry

Leave a Reply