-
Create a private key
openssl genrsa -out server.key 2048
-
make a new x509 cert good for 10 years for that private key
openssl req -new -x509 -sha256 -key server.key -out server.crt -days 3650
-
Follow the prompts entering CY code, State/Region name, and
localhost
for everything else -
open keychain (
cmd
+space
keychain access.app) -
Drag the .crt file into system certificates
-
Double click the certificate, expand the "trust" section
-
Where it says "Using this Certificate" Select "Always Trust" from the dropdown
-
Confirm the change with your mac password
Last active
June 22, 2021 16:38
-
-
Save dcaponi/4163f9ec4169be5d59fbec3c3bd02212 to your computer and use it in GitHub Desktop.
Self Signed Certs on Mac
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment