Advertisement
Guest User

Untitled

a guest
May 26th, 2019
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. openssl req -x509 -out cert.pem -keyout key.pem \
  2. -newkey rsa:2048 -nodes -sha256 \
  3. -subj '/CN=localhost' -extensions EXT -config <( \
  4. printf "[dn]\nCN=localhost\n[req]\ndistinguished_name = dn\n[EXT]\nsubjectAltName=DNS:localhost\nkeyUsage=digitalSignature\nextendedKeyUsage=serverAuth")
  5.  
  6. // After running this place the cert.pem in your SYSTEM keys in Keychain Access
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement