Last active
April 3, 2021 15:46
-
-
Save georgechang/4e233ce3e5005dfb3309a27ab0d2f0c3 to your computer and use it in GitHub Desktop.
Revisions
-
georgechang renamed this gist
Apr 3, 2021 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
georgechang created this gist
Apr 3, 2021 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,3 @@ New-SelfSignedCertificate -DnsName domain.com -CertStoreLocation Cert:\LocalMachine\My -KeyExportPolicy Exportable -NotAfter (Get-Date).AddYears(3) | Export-PfxCertificate -FilePath .\cert.pfx -Password (ConvertTo-SecureString -String "secret" -AsPlainText -Force) openssl pkcs12 -in cert.pfx -nocerts -out cert.key openssl pkcs12 -in cert.pfx -clcerts -nokeys -out cert.crt