Advertisement
leathan

Self signed cert 1 liner

Jul 22nd, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. openssl req -x509 -nodes -days 36500 -subj "/C=US/ST=California/L=San Diego/O=Project Bitmark/OU=Bitmark/CN=leathan.xyz,www.leathan.xyz" -newkey rsa:2048 -keyout privkey.pem -out cert.pem -config /System/Library/OpenSSL/openssl.cnf
  2.  
  3.  
  4.  
  5. And edit the .cnf file like so:
  6. in the [ v3_ca ] section add the line subjectAltNAme = @alt_names
  7.  
  8. then at the end of the file add this
  9.  
  10. [alt_names]
  11. DNS.1:leathan.xyz
  12. DNS.2:www.leathan.xyz
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement