Invalid / Self-Signed Certificates
All requests are performed using https. This means that the gateway’s certificate is validated before each request. If you are using a self-signed certificate for the management of your gateway, make sure to add it to the trust store of the computer that executes the adaptable driver. Otherwise all requests to the gateway will fail.
If you can’t access the trust store of the computer, you can also adjust the PowerShell Script. The way to skip certificate checks might be different based on what version of PowerShell you are running. The following code should work on most versions. It needs to be put at the top of the script.
Please note, that you need to do this change every time a new version of the adaptable driver is released.
Please be advised that trusting invalid certificates poses a major security risk.
Add-Type -TypeDefinition @"
using System.Net;
using System.Security.Cryptography.X509Certificates;
public class TrustAllCertsPolicy : ICertificatePolicy {
public bool CheckValidationResult(
ServicePoint srvPoint, X509Certificate certificate,
WebRequest request, int certificateProblem) {
return true;
}
}
"@
[System.Net.ServicePointManager]::CertificatePolicy = New-Object TrustAllCertsPolicy
apiida.com