a guest Jul 16th, 2019 71 Never
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
RAW Paste Data