I am facing issue in connecting with client SOAP
Things i have done
1.i have used below code for certificate
2. install certificate on my PC
3. i have check service URL from in the browser and and its valid
4. i have a pop up for credential required then i can access URL in browser
public void MssCertificateAuthentication(byte[] ssClientCertificateContent) { ISOAPClient client = SoapRequest.GetCurrentClient(); var binding = client.Endpoint.Binding; if (binding is BasicHttpBinding) { ((BasicHttpBinding)binding).Security.Transport.ClientCredentialType = HttpClientCredentialType.Certificate; } else if (binding is CustomBinding) { var httpsElement = ((CustomBinding)binding).Elements.Find<HttpsTransportBindingElement>(); if (httpsElement != null) { httpsElement.RequireClientCertificate = true; } } var cert = new X509Certificate2(ssClientCertificateContent); client.ClientCredentials.ClientCertificate.Certificate = cert; }
Error while access the service
Stack System.ServiceModel.Security.SecurityNegotiationException: Could not establish secure channel for SSL/TLS with authority 'api.ab.com'. at Object.s [as getException] (https://o.mca/App/scripts/OutSystems.js?XYKPEkUtpya536fll7SP0A:2:10083) at c.onSuccess (https://o.mca/App/scripts /scripts/OutSystems.js?XYKPEkUtpya536fll7SP0A:3:6054) at XMLHttpRequest.<anonymous> (https://o.mca/App/scripts scripts/OutSystems.js?XYKPEkUtpya536fll7SP0A:3:1470)
The error message you received suggests that there might be an issue with the SSL/TLS connection between your client and the server. Here are some suggestions to help resolve this issue:
-Verify that the server's SSL/TLS certificate is valid and trusted by the client. You can do this by checking the certificate chain and verifying that it has been issued by a trusted certificate authority.
-Check that the server's SSL/TLS configuration is compatible with your client's configuration. Make sure that the server is using a supported protocol and cipher suite that your client can negotiate.
-Verify that your client's SSL/TLS configuration is correct. Check that the client is using the appropriate certificate and that the certificate is installed correctly on the client's machine.
-Check that your client's firewall or antivirus software is not blocking the SSL/TLS connection. You can try temporarily disabling these programs to see if it resolves the issue.
-Check that the service URL is correct and that you can access it from your client machine. You can try accessing the service URL from a web browser to see if it returns the expected response.
I hope one of these helps you.