Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $cert = New-SelfSignedCertificate -DnsName your.domain.com -CertStoreLocation "cert:\LocalMachine\My" -KeyLength 2048 -KeySpec "KeyExchange"
- $password = ConvertTo-SecureString -String "Pa$$w0rd" -Force -AsPlainText
- Export-PfxCertificate -Cert $cert -FilePath ".\your-certificate.pfx" -Password $password
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement