How to create Self Signed Certificate?

Powershell Command

New-SelfSignedCertificate `
  -certstorelocation cert:\localmachine\my `
  -dnsname app.cloudyworld.ca

Note: in the "dnsname" change it to your environment. Once you execute above command, copy the thumbprint it generates and paste in the below code marked in bold.  

$pwd = ConvertTo-SecureString -String "PASSWORD" -Force -AsPlainText

Export-PfxCertificate `
  -cert cert:\localMachine\my\A29C6B4827282DD1C1787CAE3AC9BE1596A56DE3 `
  -FilePath c:\appcloudyworld.pfx `
  -Password $pwd

Comments

Popular posts from this blog

Deploy Palo Alto in Azure

Demystifying System and User Define Routes of Azure

Azure Private DNS Zone - App Service Environment V2 Step by step - Part 2