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.
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.