Last active
November 24, 2019 19:41
-
-
Save kalepail/8788ec74c2358fb72da79f5b8ff5af37 to your computer and use it in GitHub Desktop.
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
openssl req -x509 -out cert.pem -keyout key.pem \ | |
-newkey rsa:2048 -nodes -sha256 \ | |
-subj '/CN=localhost' -extensions EXT -config <( \ | |
printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth") | |
// After running this place the cert.pem in your SYSTEM keys in Keychain Access | |
// Once added be sure and trust that cert for use from Keychain Access as well |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment