daily pastebin goal
75%
SHARE
TWEET

Untitled

a guest Apr 21st, 2017 45 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. openssl genrsa -out ssl.key 2048
  2. openssl req -new -config ssl.conf -key ssl.key -out ssl.csr
  3. openssl x509 -req -sha256 -days 3650 -CAcreateserial -CAkey root.key -CA root.crt -in ssl.csr -out ssl.crt
  4.    
  5. [req]
  6. prompt = no
  7. distinguished_name = req_distinguished_name
  8. x509_extensions = v3_ca
  9.  
  10. [req_distinguished_name]
  11. CN = 127.0.0.1
  12.  
  13. [v3_ca]
  14. subjectAltName = @alt_names
  15.  
  16. [alt_names]
  17. DNS.1 = 127.0.0.1
  18. DNS.2 = ::1
  19. DNS.3 = localhost
  20.    
  21. openssl req -new -x509 -sha256 -days 3650 -config ssl.conf -key ssl.key -out ssl.crt
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top