Self Signed Certificate – PowerShell Code Snippet

How to create self signed TLS/SSL certificate? $cert = New-SelfSignedCertificate -CertStoreLocation cert:\currentuser\my -Subject “cn=asish.azure-api.net” -DnsName “rwf-npd.azure-api.net”$pwd = ConvertTo-SecureString -String ‘YourPassword’ -Force -AsPlainText$path = ‘cert:\currentuser\my\’ + $cert.thumbprintExport-PfxCertificate -cert $path -FilePath c:\test\powershellcert.pfx -Password $pwd Relevant for Azure API Management