Hi Everyone,
I'm trying to consume one SSL SOAP service but I'm having this error in runtime. These are the steps I have done to install the certificate and configure it in the Service Center:
1. Imported the pfx certificate into mmc;2. Gave permissions to Network_Service and IIS_PWG3. Exported the .cer certificate4. Configured the Integration certificate to this new file in Service Center
I followed this post in the community: https://www.outsystems.com/forums/discussion/9471/configure-and-use-web-service-client-side-certificates/#Post30452
With this I got the error "The request was aborted: Could not create SSL/TLS secure channel.".
I also used the extension ManageSecurityProtocols to manipulate the version on TLS used but the error persists!
In MMC the certificate it's ok and have all chain correct. Any ideas?
Hi Nuno,
It seems that the certificate information you gave is about your client certificate (given that you have a private key). However, the "Could not create SSL/TLS secure channel" error usually means that there's something wrong with the server certificate, e.g. the certificate is for a different hostname, or otherwise invalid, or not trusted etc. I don't think the error has to do at all with configuring your client certificate, I would've expected a "Remote host closed connection" or the like if that was the problem.
In Service Studio configure the service "Authentication" property to Basic Authenticationand specify user credentials (username and password). These credentials will be used throughout all your infrastructure environments, unless overridden in Service Center.
For more info see: Configure Web Service AuthenticationCheers,Nuno Verdasca
The error is generic and there are many reasons why the SSL/TLS negotiation may fail. ServicePointManager.SecurityProtocol property selects the version of the Secure Sockets Layer (SSL) or Transport Layer Security (TLS) protocol to use for new connections; existing c# connections aren't changed. Make sure the ServicePointManager settings are made before the HttpWebRequest is created, else it will not work. Also, you have to enable other security protocol versions to resolve this issue:
ServicePointManager.Expect100Continue = true;
ServicePointManager.SecurityProtocol = SecurityProtocolType.Tls12
SecurityProtocolType.Tls
SecurityProtocolType.Tls11
SecurityProtocolType.Ssl3;
//createing HttpWebRequest after ServicePointManager settings
HttpWebRequest request = (HttpWebRequest)WebRequest.Create("https://google.com/api/")
If you create HttpWebRequest before the ServicePointManager settings it will fail and shows the error message.