Netsh 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 > Windows Server General Forum Question 0 Sign in to
Ssl Certificate Add Failed Error 183
vote I'm trying to connect a SSL cert to my http listener application. I'm running kb 981506 on Windows Server 2008 SP2. I'm using the netsh http commandsuch as the followingto do this. add sslcert ipport=10.0.0.1:443 certhash=somelongcerthash appid={somelongappid} When I ssl certificate add failed error 1312 windows 8 use the command I get the following error message. SSL Certificate add failed, Error: 1312 A specified logon session does not exist. It may already have been terminated. I'm logged onto the server as a domain admin
Ssl Certificate Deletion Failed, Error: 2
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 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.
Error 1312 Net Use
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 plugin assuming that a full cert would be created, but this cert didn't work. --Mark Marked as answer by Mark Sweat Monday, August 30, 2010 7:10 PM Monday, August 30, 2010 7:10 PM Reply | Quote All replies 0 Sign in to vote Hi Mark, This KB might help you http://support.microsoft.com/
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about netsh http add sslcert certstorename Stack Overflow the company Business Learn more about hiring developers or posting ads with
Error 1312 Cannot Create Directory
us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is netsh certhash a community of 6.2 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up SSL Certificate add failed when binding to port up vote 17 down vote favorite https://social.technet.microsoft.com/Forums/windowsserver/en-US/68452008-a89b-40ba-9927-472efcfafc99/ssl-certificate-add-failed-error-1312?forum=winservergen 8 I created a WebService using WCF. I'm doing self hosting and I want to enable HTTPS. From my understanding for this to happen, I need to create a certificate and bind to the port that I want to use. Here are the steps that I've done to handle this: Created a Certificate on my local machine to act as the Root Certificate Authority makecert -n "CN=My Root Certificate Authority" -r http://stackoverflow.com/questions/13076915/ssl-certificate-add-failed-when-binding-to-port -sv RootCATest.pvk RootCATest.cer Opened MMC.exe and imported the saved .cer file into the "Trusted Root Certificate\Certificates\ folder makecert -sk MyKeyName -iv RootCATest.pvk -n "CN=MyMachineName" -ic RootCATest.cer -sr localmachine -ss my -sky exchange -pe MyMachineName.cer Created a temporary service certificate from the signed Root Certificate Authority makecert -sk MyKeyName -iv RootCATest.pvk -n "CN=MyMachineName" -ic RootCATest.cer -sr localmachine -ss my -sky exchange -pe MyMachineName.cer Tried to Bind the Certificate to the Port number (443 in this case) netsh http add sslcert ipport=0.0.0.0:443 certhash=2c5ba85bcbca412a74fece02878a44b285c63981 appid={646937c0-1042-4e81-a3b6-47d678d68ba9} The result from step 4 is the following error: SSL Certificate add failed, Error 1312 A specified logon session does not exist. It may already have been terminated. Does anyone have a clue why I might be getting this error? ssl https share|improve this question edited Jul 15 '14 at 18:30 abatishchev 57.1k56215354 asked Oct 25 '12 at 20:42 Michael Wilson 1772413 add a comment| 13 Answers 13 active oldest votes up vote 19 down vote I had the same error. The first time it occurred, as Micheal said, I had to move the certificate under Certificates(Local Computer) -->Personal -->Certificate folder. I had the same error when I imported the same certificate on another machine. The reason was that I was using certmgr.msc to import the certifica
get tips & solutions from a community of 418,598 IT Pros & Developers. It's quick & easy. netsh error - 1312 P: n/a =?Utf-8?B?U2NvdHQ=?= I have seen numerous posts, both here and google, https://bytes.com/topic/net/answers/855538-netsh-error-1312-a where people are having this issue, but I have yet to see an explanation of the problem. I have a WCF service that is working fine using http. But now we need to upgrade it to use SSL. http://www.mrboingo.com/index.php/archives/240 To do this we need to install and register a server certificate. I got a certificate (Web Server) from our enterprise cert server. Exported it as a cer file and installed it on my development machine (Vista error 1312 64 ultimate, vs2008). running netsh netsh>http add sslcert ipport=0.0.0.0:5433 certhash=b6306171c7f42d54b59fd8c47d07d260b336e199 clientc ertnegotiation=enable appid={e0456eb3-e143-4092-9f84-7527136625cd} SSL Certificate add failed, Error: 1312 A specified logon session does not exist. It may already have been terminated. where certhash is the thumbprint from the certificate and the appid is the guid from the assemblyinfo.cs file on the server project. What does 1312 indicate? -- Scott Norberg Nov 19 '08 #1 Post Reply Share this Question 2 Replies P: n/a Steven ssl certificate add Cheng Hi Scott, From your description, you're trying to use HTTPS/SSL for a self hosted WCF service. However, you're encountering the following error when registring the SSL certifictae for the https port, correct? =============== SSL Certificate add failed, Error: 1312 A specified logon session does not exist. It may already have been terminated. ============= I've just performed a local test, including test cert creating, ssl port registering and WCF service host and running. For certificate creation and ssl port registring, I followed this thread: http://social.msdn.microsoft.com/for...cfc-5b11-4900- b9bb-e7f4fac940c4/ There are two things you may have a further check: 1. When run the netsh command to register sslcert, have you used elevated token(to start the commandline prompt)? This is necessary, otherwise ,the normal permission is not sufficient. 2. My test use a test cert generated via "makecert.exe" (as mentioned in the above thread). You can also try using a makecert generated cert to see whether it works. If so, that means the problem is specific to certificate. Sincerely, Steven Cheng Microsoft MSDN Online Support Lead Delighting our customers is our #1 priority. We welcome your comments and suggestions about how we can improve the support we provide to you. Please feel free to let my manager know what you think of the level of service provided. You can send feedback directly to my manager at: ms****@microsoft.com. =======================================
Solve Galaxy S6 Bluetooth Issue | TechnoBezz Free Forza Motorsport 6: Apex Resetting Local & Domain Admin Passwords Recent CommentsArchives October 2016 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={11223344-4455-6677-8899-AABBCCDDEEFF} clientcertnegotiation=enable SSL Certificate successfully added C:\Windows\sys