Advertisement
hesham_elkhatib

Self-signed certificate config

Jun 25th, 2023
455
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [req]
  2. default_bits       = 2048
  3. default_keyfile    = localhost.key
  4. distinguished_name = req_distinguished_name
  5. req_extensions     = req_ext
  6. x509_extensions    = v3_ca
  7.  
  8. [req_distinguished_name]
  9. commonName                  = Common Name (e.g. server FQDN or YOUR name)
  10. commonName_default          = localhost
  11. commonName_max              = 64
  12.  
  13. [req_ext]
  14. subjectAltName = @alt_names
  15.  
  16. [v3_ca]
  17. subjectAltName = @alt_names
  18. basicConstraints = critical, CA:false
  19. keyUsage = keyCertSign, cRLSign, digitalSignature,keyEncipherment
  20.  
  21. [alt_names]
  22. DNS.1   = localhost
  23. DNS.2   = 127.0.0.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement