Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $cert = New-SelfSignedCertificate -DnsName lingarogroup.com -CertStoreLocation cert:\LocalMachine\My
  2.  
  3. $CertPassword = ConvertTo-SecureString -String "Lingaro123" -Force –AsPlainText
  4.  
  5. Export-PfxCertificate -Cert cert:\LocalMachine\My\$($cert.Thumbprint) -FilePath C:\AzureWeeklyCert.pfx -Password $CertPassword
  6. Export-Certificate -Cert cert:\LocalMachine\My\$($cert.Thumbprint) -FilePath C:\AzureWeeklyCert.cer
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement