Error 1312
Contents |
(עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語) HomeWindows Server 2012Windows Server 2008 R2Windows Server 2003LibraryForums Ask a question Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Answered by: SSL Certificate add failed, Error: 1312 Windows Server > error 1312 cannot create directory Windows Server General Forum Question 0 Sign in to vote I'm trying to connect
Error 1312 A Specified Logon Session
a SSL cert to my http listener application. I'm running on Windows Server 2008 SP2. I'm using the netsh http fix error 1312 commandsuch as the followingto do this. add sslcert ipport=10.0.0.1:443 certhash=somelongcerthash appid={somelongappid} When I use the command I get the following error message. SSL Certificate add failed, Error: 1312 A specified logon session does system error 1312 has occurred not exist. It may already have been terminated. I'm logged onto the server as a domain admin when I run the command. I previously had this application setup to use SSL on a different port with the same cert, the application ran fine for a few weeks. I was in the process of switching the application onto port 443 when this error started to occur. As
Błąd Systemu 1312
part of the switch I found the cert was also defined for a web site. I undefined the SSL and port binding for the web site. I reconnected to cert to the old Port and successfully test the application again, then deleted the binding using the "delete sslcert" command and attempt to use the same "add sslcert" command with port 443 and got the failure. Now I can't use the add sslcert command no matter what port I specify without getting the failure message. Microsoft has a fix for this error message for Windows 7 and Windows Server 2008 R2, but not Windows Server 2008 SP2. Googling around I see a number of other people that have run into this issue but don't see any remedies that work for me. --Mark Friday, August 06, 2010 4:59 PM Reply | Quote Answers 0 Sign in to vote Hi Mark, This KB might help you http://support.microsoft.com/kb/981506 Marked as answer by Tim QuanModerator Monday, August 30, 2010 9:21 AM Monday, August 23, 2010 11:29 AM Reply | Quote 0 Sign in to vote I tried a new certificate and it worked fine. I exported the problem certificate throught he MMC Certificates
here for a quick overview of the site Help Center Detailed answers to any questions you might error 1312 netsh have Meta Discuss the workings and policies of this site About error 1312 a specified logon session does not exist Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting
Error 1321
ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million https://social.technet.microsoft.com/Forums/windowsserver/en-US/68452008-a89b-40ba-9927-472efcfafc99/ssl-certificate-add-failed-error-1312?forum=winservergen programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Using netsh, bind an SSL certificate to a port number is failing up vote 15 down vote favorite 3 I have followed the instructions in SSL with Self Hosted WCF Service. When I am trying to bind the certificate http://stackoverflow.com/questions/9641723/using-netsh-bind-an-ssl-certificate-to-a-port-number-is-failing on Windows 7 using netsh as described in How to: Configure a Port with an SSL Certificate., it is failing as follows. In Windows PowerShell PS C:\> netsh http add sslcert ipport=0.0.0.0:8732 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={00112233-4455-6677-8899-AABBCCDDEEFF} Bad numeric constant: 224. At line:1 char:104 + netsh http add sslcert ipport=0.0.0.0:8732 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={001 <<<< 12233-4455-6677-8899-AABBCCDDEEFF} + CategoryInfo : ParserError: (224:String) [], ParentContainsErrorRecordException + FullyQualifiedErrorId : BadNumericConstant In a command prompt C:\>netsh http add sslcert ipport=0.0.0.0:8732 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={00112233-4455-6677-8899-AABBCCDDEEFF} SSL Certificate add failed, Error: 1312 A specified logon session does not exist. It may already have been terminated. windows-7 ssl-certificate wcf-binding netsh share|improve this question edited Aug 31 '13 at 9:28 Peter Mortensen 10.2k1369107 asked Mar 9 '12 at 22:13 Win Myo Htet 3,37322345 I had a recent run-in with this issue. I solved my problem as follow: stackoverflow.com/a/19766650/481656 –DoomerDGR8 Nov 7 '13 at 8:20 add a comment| 7 Answers 7 active oldest votes up vote 19 down vote I fought with this forever to get m
SSL Certificate add failed, Error: 1312 by Andrius 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 http://www.kozeniauskas.com/itblog/2011/03/25/ssl-certificate-add-failed-error-1312/ sslcert ipport=0.0.0.0:8000 certhash=0000000000003ed9cd0c315bbb6dc1c08da5e6 appid={00112233-4455-6677-8899-AABBCCDDEEFF} The command failes with error: SSL Certificate add failed, Error: http://www.mrboingo.com/index.php/archives/240 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 error 1312 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 :certificate, netsh, SSL 1 error 1312 a Comment for this entry Hassan Gulzar November 7th, 2013 on 08:43 I had a recent run-in with this issue. I solved my problem as follow: http://stackoverflow.com/a/19766650/481656 Reply Leave a Reply Click here to cancel reply. Name (required) Mail (will not be published) (required) Website RSS feed for this post (comments) TrackBack URI Hi! Welcome to IT Blog!Thanks for dropping by! Feel free to join the discussion by leaving comments, and stay updated by subscribing to the RSS feed. See ya around! Visitors Archives June 2014(3) May 2014(1) December 2013(5) November 2013(1) June 2013(9) March 2013(1) February 2013(3) January 2013(4) December 2012(3) November 2012(3) August 2012(1) February 2012(1) December 2011(1) November 2011(2) October 2011(1) September 2011(2) August 2011(2) June 2011(3) May 2011(6) April 2011(1) March 2011(7) February 2011(6) January 2011(5) December 2010(6) November 2010(4) October 2010(6) September 2010(1) July 2009(1) April 2009(2) March 2009(2) February 2009(2) January 2009(4) November 2008(1) October 2008(3) September 2008(3) August 2008(1) July 2008(6) June 2008(5) May 2008(2) April 2008(7) March 2008(16) February 2008(18) January 2008(13) Categories Arduino Cisco MDS Nexus UCS HP NNM Microsoft IIS SCCM/SMS2003 SQL Windows 7 Other Storage Vblock Virtualization Hyper-V Virtuozzo VMware Meta Log in Valid XHTML Powered by WordPress. Theme: Pixel. Sweet icons by
Motorsport 6: Apex Resetting Local & Domain Admin Passwords HD Tune Recent CommentsArchives April 2016 March 2016 February 2016 January 2016 August 2015 July 2015 June 2015 February 2015 January 2015 December 2014 September 2014 July 2014 June 2014 May 2014 March 2014 February 2014 October 2013 September 2013 March 2013 November 2012 October 2012 September 2012 Categories Android Avaya How To Out And About Tech Life Certificate port binding: SSL Certificate add failed, Error: 1312 A specified logon session does not exist. It may already have been terminated Standard There are very annoying messages in Windows. I will talk here an in the next posts about some of the security related errors and how do they help you to understand the problem. So here is the thing: you have just Installed the certificate in the certificate store, and you can visually see it, but when you try to bind it to the ip port using netsh or httpcfg (information here: http://msdn.microsoft.com/en-us/library/ms733768.aspx) you get a message saying : A specified logon session does not exist. It may already have been terminated. Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\Windows\system32>netsh http add sslcert ipport=0.0.0.0:443 certhash=3045c0dab3764dd641a3742253c9b22e07acf645 appid={11223344-4455-6677-8899-AABBCCDDEEFF} clientcertnegotiation=enable SSL Certificate add failed, Error: 1312 A specified logon session does not exist. It may already have been terminated. After investigating the issue, it seems that the problem is the certificate must be in the local machine store to be successfully binded with the port. All you have to do is to drag and drop it there Moving cert with drag and drop is simple. It copies the cert and it's private key. So now the same command should work C:\Windows\system32>netsh http add sslcert ipport=0.0.0.0:443 certhash=3045c0dab3764dd641a3742253c9b22e07acf645 appid={