B
Bart
Hi,
I have a webservice that is running fine without SSL.
When I call my webservice over SSL I recieve following error message:
System.Net.WebException:
The underlying connection was closed: Could not establish trust relationship
for the SSL/TLS secure channel.
---> System.Security.Authentication.AuthenticationException: The remote
certificate is invalid according to the validation procedure..
I added this line to my code to add the certificate:
target.ClientCertificates.Add(System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromCertFile("d:\\MyCertFile.cer"));
I'm new to this certificate stuff.
Thanks
Bart
I have a webservice that is running fine without SSL.
When I call my webservice over SSL I recieve following error message:
System.Net.WebException:
The underlying connection was closed: Could not establish trust relationship
for the SSL/TLS secure channel.
---> System.Security.Authentication.AuthenticationException: The remote
certificate is invalid according to the validation procedure..
I added this line to my code to add the certificate:
target.ClientCertificates.Add(System.Security.Cryptography.X509Certificates.X509Certificate.CreateFromCertFile("d:\\MyCertFile.cer"));
I'm new to this certificate stuff.
Thanks
Bart