Snippets Collections
class TrustAll : System.Net.ICertificatePolicy 
{
  [bool]CheckValidationResult([System.Net.ServicePoint]$sp, [System.Security.Cryptography.X509Certificates.X509Certificate]$cert, [System.Net.WebRequest]$request, [int]$problem)
  {
    return $true
  }
}

[System.Net.ServicePointManager]::CertificatePolicy = [TrustAll]::new()
star

Fri Apr 22 2022 16:54:00 GMT+0000 (Coordinated Universal Time) https://devcenter.heroku.com/articles/ssl-certificate-self

#bash #ssl #linux #unix #certificate
star

Sat Mar 13 2021 11:38:25 GMT+0000 (Coordinated Universal Time)

#powershell #certificate

Save snippets that work with our extensions

Available in the Chrome Web Store Get Firefox Add-on Get VS Code extension