cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

NintexWorkflowWS.PublishFromNWF don't work in https site collection

I have a https site collection, and I try to use the method: NintexWorkflowWS.PublishFromNWF to publish a nwf file. But this operation was failed , and I get a exception:The underlying connection was closed: Could not establish trust relationship for the SSL/TLS secure channel.

Labels: (2)
0 Kudos
Reply
1 Reply
Highlighted
Not applicable

Re: NintexWorkflowWS.PublishFromNWF don't work in https site collection

I had found a solution for this issue. We just need add

ServicePointManager.ServerCertificateValidationCallback = (object sender, X509Certificate certificate, X509Chain chain, SslPolicyErrors sslPolicyErrors) => true;

before NintexWorkflowWS.PublishFromNWF method, this line code will skip validating certificate to avoid a case that certificate is invalid.

Reply