Setup VPN Certificates
Setup Variables
$app = "obt"
$env = "c"
$zone = "z1"
$name = "$($app)-vpn-root"
$sub = "CN=$name"
$pass = "SOMEPASS"
$path = "C:\vso\Deploy\certs"
$file_root_pfx = (join-path $path "$name.pfx")
$file_root_cer = (join-path $path "$name.cer")
$pwd = ConvertTo-SecureString -String $pass -Force -AsPlainText
$ag = @{
Type = "Custom";
KeySpec = "Signature";
Subject = $sub
KeyExportPolicy = "Exportable";
HashAlgorithm = "sha256";
KeyLength = 2048;
CertStoreLocation = "Cert:\CurrentUser\My";
KeyUsageProperty = "Sign";
KeyUsage = "CertSign";
}
Create Cert
Verify Cert
Export Private Key
export Public Key
Export User Certs
Last updated
Was this helpful?