The Webservice administrator gave me the WSDL, two certificates and a private key:
service.wsdl
ssl.cer
auth_cert.pem
auth_private_key.pem
In Visual Studio 2010, I added a web link (the service link does not work) from WSDL. Then I tried to use it, as it was an http client-minder:
MySoapClient client = new MySoapClient();
client.Operation();
and I get this stack trace:
Unhandled Exception: System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Web.Services.Protocols.WebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.HttpWebClientProtocol.GetWebResponse(WebRequest request)
at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters)
What should I do with certificates and private key?
I cannot find an online tutorial or books that cover this subject. Any hint?
Update
Endpoint Access Using Firefox:
SSL partner cannot confirm your certificate. (Error code: ssl_error_bad_cert_alert)
source
share