Create a self-signed certificate with Powershell

$params = @{
    DnsName = 'pwvn24.local', 'www.pwvn24.local'
    CertStoreLocation = 'Cert:\LocalMachine\My'
}
New-SelfSignedCertificate @params
New-SelfSignedCertificate -DnsName *.dev.local -FriendlyName *.dev.local -NotAfter (Get-Date).AddYears(15) -CertStoreLocation cert:\LocalMachine\My

📇 Additional Metadata

  • 🗂 Type::note
  • 🏷️ Tags::
  • 📡 Status::🌲