Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. $cert = New-SelfSignedCertificate -DnsName your.domain.com -CertStoreLocation "cert:\LocalMachine\My" -KeyLength 2048 -KeySpec "KeyExchange"
  2. $password = ConvertTo-SecureString -String "Pa$$w0rd" -Force -AsPlainText
  3. Export-PfxCertificate -Cert $cert -FilePath ".\your-certificate.pfx" -Password $password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement