C
csi-bxl
Guest
Good afternoon,
I'm fishing for some help on a httpWebRequest connection under selfsigned certificate (IIS) issue.
Context
Connecting to a web service (WCF Rest API)
The site is under ssl (self signed certificate)
The site is in dev environment.
The client call the site with httpWebRequest
The problem
When I call the service in http all work like a charm.
When I call the service in http I got the following message.
Error
-----
"httpWebRequest The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."
What I did
Following some tips found on google I did this:
...
ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;
...
What I got
The type of the error changed for: "The remote server returned an error: (404) Not Found."
Question
Is there another way to workaround this?
Kind regards.
Claude
Continue reading...
I'm fishing for some help on a httpWebRequest connection under selfsigned certificate (IIS) issue.
Context
Connecting to a web service (WCF Rest API)
The site is under ssl (self signed certificate)
The site is in dev environment.
The client call the site with httpWebRequest
The problem
When I call the service in http all work like a charm.
When I call the service in http I got the following message.
Error
-----
"httpWebRequest The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel."
What I did
Following some tips found on google I did this:
...
ServicePointManager.ServerCertificateValidationCallback += (sender, certificate, chain, sslPolicyErrors) => true;
...
What I got
The type of the error changed for: "The remote server returned an error: (404) Not Found."
Question
Is there another way to workaround this?
Kind regards.
Claude
Continue reading...