Acquirecredentialshandle Failed With Error 0x8009030d
Contents |
SQL Server 2014 Express resources Windows Server 2012 resources Programs MSDN subscriptions Overview Benefits Administrators Students Microsoft Imagine Microsoft Student Partners ISV Startups TechRewards Events Community Magazine Forums Blogs Channel acquirecredentialshandle failed with error 0x80090331 9 Documentation APIs and reference Dev centers Retired content Samples We’re sorry.
Error 0x8009030d Returned By Acquirecredentialshandle
The content you requested has been removed. You’ll be auto redirected in 1 second. Ask a question could not create ssl tls secure channel httpwebrequest Quick access Forums home Browse forums users FAQ Search related threads Remove From My Forums Asked by: SSL/TLS exception when using HttpWebRequest with client certificate Archived Forums # > the request was aborted could not create ssl/tls secure channel. web service .NET Framework Networking and Communication Question 0 Sign in to vote Hi, I wrote following code to call a aspx page in code (from another aspx page): HttpWebRequest httprq = (HttpWebRequest)HttpWebRequest.Create(uri);
string certificateName = "SoapProxy2";X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser);store.Open(OpenFlags.ReadOnly);X509Certificate2Collection certificates = store.Certificates.Find(X509FindType.FindBySubjectName, certificateName, true);X509Certificate certificate = certificates[0];httprq.ClientCertificates.Add(certificate); httprq.Method = "POST";httprq.ContentType = "text/xml; charset=utf-8";httprq.ContentLength = 0;HttpWebResponse httprpCould Not Create Ssl Tls Secure Channel Client Certificate
= (HttpWebResponse)httprq.GetResponse();
When I run this I get the exception: 'The request was aborted: Could not create SSL/TLS secure channel.'. The client and ssl certificates are perfectly valid (It works when I call the page in my browser). How to solve this? Thanks. Wednesday, January 25, 2006 10:51 AM All replies 0 Sign in to vote The fact that your browser doesn't complain about the certificate doesn't mean it's valid -- thr browser could be configured to accept that certificate without further complaints. For test purposes, you can implement a System.Net.ICertificatePolicy that accepts any certificate and logs all problems found for a given certificate. Try this sample, but make it return true instead of false. Out of curiosity: Why do you use POST at all? Your code doesn't send any data other than HTTP headers. GET should work. Proposed as answer by vallen1985 Wednesday, September 07, 2011 7:37 PM Wednesday, January 25, 2006 11:43 AM 0 Sign in to vote The CertificatePolicy returned SSPI code 0x00000000, whichis status OK I suppose, although it wasn't in the enum listWCF secured web service using a add service reference could not create ssl tls secure channel client certificate issued by them. I have added this client certificate to my
The Request Was Aborted Could Not Create Ssl/tls Secure Channel Windows 10
servers' certificate store. (Ref#1(packing a certificate), Ref#2(importing to store)) And I have the client WCF configuration as follows: https://social.msdn.microsoft.com/Forums/en-US/43fe9467-a2c2-4ce9-9d77-865e8fee456f/ssltls-exception-when-using-httpwebrequest-with-client-certificate?forum=netfxnetcom style="background: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline;"><system.http://blog.dinklabs.com/2014/12/could-not-create-secure-channel-fix.html vertical-align: baseline;">serviceModel>
a service which runs under local SYSTEM users context. We have thses certificates hard coded into our application we create context of these certificates by calling CertCreateCertificateContext (X509_ASN_ENCODING, pbCertEncoded, cbCertEncoded); we pass this context to AcquireCredentialsHandle as follows, CHANNEL_CRED SchannelCred; SECURITY_STATUS ss; ZeroMemory(&SchannelCred, sizeof(SchannelCred)); SchannelCred.dwVersion = SCHANNEL_CRED_VERSION; SchannelCred.cCreds = 1; SchannelCred.paCred = &CertContext; SchannelCred.grbitEnabledProtocols = dwEnabledProtocols; SchannelCred.dwFlags = 0 ; ss = m_pSSPIDisp->AcquireCredentialsHandle( NULL, UNISP_NAME, SECPKG_CRED_INBOUND, NULL, &SchannelCred, NULL, NULL, &m_hServerCreds, NULL); if (ss != SEC_E_OK) MyThrow(ss); But this call fails with 0x8009030D ("The credentials supplied to the package were not recognized") Pl. Help. If we don't pass CertContext to AcquireCredentialsHandle the API succeeds, Is there any problem with our server certificate ? This code was working fine on 2000, XP, 2003. . Prev by Date: Where/How to save passwords... Next by Date: Retrieve a FIORWARDABLE tgt when allowtgtsessionkey=0 Previous by thread: Where/How to save passwords... Next by thread: Retrieve a FIORWARDABLE tgt when allowtgtsessionkey=0 Index(es): Date Thread Flag as inappropriate (AWS) Security UNIX Linux Coding Usenet Mailing-ListsNewsgroupsAboutPrivacyImprint www.derkeiler.com >Newsgroups >microsoft.public.platformsdk.security >2008-01