I have used VB .Net code in the invoke code activity to bypass certificate validation before a webservice call.
Please see the below code:
System.Net.ServicePointManager.ServerCertificateValidationCallback =
Function(se As Object,
cert As System.Security.Cryptography.X509Certificates.X509Certificate,
chain As System.Security.Cryptography.X509Certificates.X509Chain,
sslerror As System.Net.Security.SslPolicyErrors) True
System.Net.ServicePointManager.Expect100Continue = False
I have made the following changes:
1.Converted a Windows-legacy project to a Windows project
2.Converted the web dll from the .Net framework to the .Net core.