Windows error 0x80072F0D, -2147012851

Detailed Error Information

WININET_E_INVALID_CA[1]

MessageThe certificate authority is invalid or incorrect
Declared inwinerror.h

HRESULT analysis[2]

FlagsSeverityFailure
Reserved (R)false
OriginMicrosoft
NTSTATUSfalse
Reserved (X)false
FacilityCode7 (0x007)
NameFACILITY_WIN32[2][1]
DescriptionThis region is reserved to map undecorated error codes into HRESULTs.[2][1]
Error Code12045 (0x2f0d)

This is a Win32 error which has been mapped into an HRESULT. More information may be available in error 0x00002f0d.

Questions

19votes
1answer

Failed to send certificate after upgrading to latest windows phone 8.1

I have a Windows Phone App, built for 8.1, and one of the tasks was a client-server certificate scenario. My app worked fine, I could send the client certificate and login to the server. However after upgrading to windows 8.10.14xxxx that was not possible. I took wireshark traces and it [...] read more
windows-phone-8.1
windows-phone
certificate
windows-10
windows-10-mobile
5votes
2answers

Ignore SSL certificate in .Net Standard 2.0

I am creating a Xamarin Cross Platform Application in it, I have replaced the Portable Class Library with .Net Standard 2.0. From this project we are making a call to web service hosted on azure service fabric cluster (this service is hosted using self signed certificate).I am getting the following [...] read more
c#
.net
ssl
xamarin.forms
.net-standard-2.0
3votes
4answers

Getting Exception from HRESULT: 0x80072F0D when posting to a service in Windows phone 8.1

When I am trying to post a data to an API using HttpClient in Windows Phone 8.1, I am always getting Exception from HRESULT: 0x80072F0D exception. In fiddler, it works fine. try { var requestbody="json data" HttpClient httpClient = new HttpClient(); HttpRequestMessage msg = new HttpRequestMessage(new HttpMethod("POST"), new Uri(addressUri)); msg.Content [...] read more
c#
windows-phone-8.1
windows-8.1
httpclient
3votes
1answer

How to ignore invalid certificates with IWinHttpRequest?

i am using Microsoft's WinHttpRequest COM object to request a web-page with an invalid certificate: IWinHttpRequest http = new WinHttpRequest(); http.Open("GET", url, false); http.Send(null); Except that the call to Send throws an exception: 0x80072F0D - The certificate authority is invalid or incorrect How do i tell WinHttpRequest that i don't [...] read more
winapi
winhttp
2votes
1answer

Windows CA Certificate Request via Commandline

I have a non-domain PC (windows 7) attempting to obtain a cert from a Windows 2008 R2 Enterprise CA. I have the root ca and crl's installed on the non-domain client. I'm working on a script that will create a certificate request file (.inf), take that request file and turn [...] read more
windows-server-2008-r2
windows-7
certificate-authority
1vote
1answer

Making POST request fails due to invalid or wrong certificate

I am trying to make a POST request in an UWP C# app, based on this example - Method A. The code for my example is: string scriptname = "myscript.php"; var content = new FormUrlEncodedContent(values); //Exception Line (103): var response = await client.PostAsync("https://myserver.ddns.net/" + scriptname, content); var responseString = await [...] read more
c#
exception
uwp
certificate
0votes
1answer

C#/UWP : How to manage certificate errors with HttpClient?

I've developed an UWP app for a client, which uses WebServices that are hosted in its domain. * Until now, the URL WebServices were related to a test server that don't use SSL * But now, the WebServices URL are related to the prod server that use SSL As I'm [...] read more
c#
ssl
uwp
certificate
httpclient
0votes
1answer

One or more errors occurred (an error occurred while sending the request) - Xamarin.Forms

I'm currently in development to create an application with Xamarin.Forms to manage notifications in an intranet. So I have a button "Connection" on the main page which connects to a webservice to verify the login and the password of the user first. My problem is the connection to the webservice [...] read more
c#
web-services
exception
xamarin
httpclient

Comments

Leave a comment

(plain text only)

Sources

  1. winerror.h from Windows SDK 10.0.14393.0
  2. https://msdn.microsoft.com/en-us/library/cc231198.aspx

User contributions licensed under CC BY-SA 3.0