RE: netsh error - 1312



{\rtf1\ansi\ansicpg936\deff0\deflang1033\deflangfe2052{\fonttbl{\f0\fnil\fprq2\fcharset0 MS Sans Serif;}}
\viewkind4\uc1\pard\lang2052\f0\fs20 Hi Scott,
\par
\par 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?
\par
\par ===============
\par SSL Certificate add failed, Error: 1312
\par A specified logon session does not exist. It may already have been terminated.
\par =============
\par
\par 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:
\par
\par http://social.msdn.microsoft.com/forums/en-US/wcf/thread/a6423cfc-5b11-4900-b9bb-e7f4fac940c4/
\par
\par There are two things you may have a further check:
\par
\par 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.
\par
\par 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.
\par
\par Sincerely,
\par
\par Steven Cheng
\par
\par Microsoft MSDN Online Support Lead
\par
\par
\par 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: msdnmg@xxxxxxxxxxxxxx
\par
\par ==================================================
\par Get notification to my posts through email? Please refer to http://msdn.microsoft.com/en-us/subscriptions/aa948868.aspx#notifications.
\par
\par Note: MSDN Managed Newsgroup support offering is for non-urgent issues where an initial response from the community or a Microsoft Support Engineer within 2 business day is acceptable. Please note that each follow up response may take approximately 2 business days as the support professional working with you may need further investigation to reach the most efficient resolution. The offering is not appropriate for situations that require urgent, real-time or phone-based interactions. Issues of this nature are best handled working with a dedicated Microsoft Support Engineer by contacting Microsoft Customer Support Services (CSS) at http://msdn.microsoft.com/en-us/subscriptions/aa948874.aspx
\par ==================================================
\par This posting is provided "AS IS" with no warranties, and confers no rights.
\par
\par
\par
\par \pard\li720 --------------------
\par From: =?Utf-8?B?U2NvdHQ=?= <snorberg@xxxxxxxxxxxxxxxxx>
\par Subject: netsh error - 1312
\par Date: Wed, 19 Nov 2008 15:19:00 -0800
\par
\par
\par I have seen numerous posts, both here and google, where people are having
\par this issue, but I have yet to see an explanation of the problem.
\par
\par I have a WCF service that is working fine using http. But now we need to
\par upgrade it to use SSL. To do this we need to install and register a server
\par certificate.
\par
\par I got a certificate (Web Server) from our enterprise cert server. Exported
\par it as a cer file and installed it on my development machine (Vista 64
\par ultimate, vs2008).
\par
\par running netsh
\par
\par netsh>http add sslcert ipport=0.0.0.0:5433
\par certhash=b6306171c7f42d54b59fd8c47d07d260b336e199 clientc
\par ertnegotiation=enable appid=\{e0456eb3-e143-4092-9f84-7527136625cd\}
\par
\par SSL Certificate add failed, Error: 1312
\par A specified logon session does not exist. It may already have been terminated.
\par
\par where certhash is the thumbprint from the certificate and the appid is the
\par guid from the assemblyinfo.cs file on the server project.
\par
\par What does 1312 indicate?
\par --
\par Scott Norberg
\par \pard
\par
\par }

Relevant Pages

  • Re: SBS2003 R2 Exchange issue
    ... SBS server, when you expand Public Folders, you get error: SSL certificate ... Restart Exchange System Manager. ...
    (microsoft.public.windows.server.sbs)
  • RE: netsh error - 1312
    ... Running the example from the article I was able to create the certificate ... you're encountering the following error when registring ... SSL Certificate add failed, Error: ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.webservices)
  • RE: netsh error - 1312
    ... Restricting netsh to domain admins does not seem like ... to log on to each workstation just to install the ssl certificate. ... certificate request wizard to generate a SSL certificate creation request. ... Microsoft MSDN Online Support Lead ...
    (microsoft.public.dotnet.framework.webservices)
  • Re: local server name
    ... settings, it must match the SSL Certificate exactly. ... certificate provider reissue your certificate to match your .com address. ... how do I get an SSL certificate to bears my public FQDN ?? ... I'm testing my newly installed Exchange server. ...
    (microsoft.public.exchange.setup)
  • Re: rda and ssl
    ... > i have created an ssl certificate using selfssl and installed it on the pc ... > is offered the certificate to install. ... request to send data to computer running iis failed. ...
    (microsoft.public.sqlserver.ce)

Quantcast