Morning Guys
Please could you help me, I’m trying to call your visa merchantpushpayments API from BizTalk 2013 and I’m getting this error:
System.ServiceModel.Security.SecurityNegotiationException: Could not establish secure channel for SSL/TLS with authority 'sandbox.api.visa.com'. ---> System.Net.WebException: The request was aborted: Could not create SSL/TLS secure channel.
at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult)
at System.ServiceModel.Channels.HttpChannelFactory`1.HttpRequestChannel.HttpChannelAsyncRequest.CompleteGetResponse(IAsyncResult result)
--- End of inner exception stack trace ---
Server stack trace:
at System.Runtime.AsyncResult.End[TAsyncResult](IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.SendAsyncResult.End(SendAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndCall(String action, Object[] outs, IAsyncResult result)
at System.ServiceModel.Channels.ServiceChannel.EndRequest(IAsyncResult result)
Exception rethrown at [0]:
at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
I, have been able to call the API successfully from SOAP UI but its seems to be a challenge to get it to work using BizTalk’s WCF Adapters.
I’ve so fare enabled TLS 1.1 / TLS 1.2 in the Regestry as well as installing CU7 for BizTalk Server 2013
Hey @gavinbrummelkam,
To resolve the error, please create new .p12 using the command line below.
Command line:
openssl pkcs12 -export -out p12certfile.p12 -inkey example-key.pem -in cert.pem
Then please try to call the helloworld method and see if you get a successful response.