Last active
August 30, 2019 12:26
-
-
Save ignas-sakalauskas/2006ab95a649507510ce73b8a654234c to your computer and use it in GitHub Desktop.
Self-signed multi-domain SSL certificate generator
This file contains 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 characters
# new-selfsignedcertificateex.ps1 Downloaded from | |
# https://gallery.technet.microsoft.com/scriptcenter/Self-signed-certificate-5920a7c6 | |
. ".\new-selfsignedcertificateex.ps1" | |
New-SelfsignedCertificateEx ` | |
-Subject "CN=mytestdomain" ` | |
-EKU 'Server Authentication', 'Client Authentication' ` | |
-SAN "mytestdomain", "localhost" ` | |
-FriendlyName 'Local Dev Self Signed Cert' ` | |
-Exportable ` | |
-StoreLocation 'LocalMachine' ` | |
-KeyLength 2048 ` | |
-ProviderName 'Microsoft Enhanced Cryptographic Provider v1.0' ` | |
-AlgorithmName 'RSA' ` | |
-SignatureAlgorithm 'SHA256' | |
# https://ignas.me/tech/self-signed-multi-domain-ssl-certificate/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment