New-SelfSignedCert
Create a self signed cert and export to a file
./new-selfsignedcert.ps1 -cn localhost -ip "127.0.0.1"
#$san,
#$pfx = ".\cert.pfx"
#$cer = ".\cert.cer"
[securestring]$secret,
[string]$friendlyname="SelfSigned Cert",
[int]$years=1