ca.cnf 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #
  2. # OpenSSL example configuration file for automated certificate creation.
  3. #
  4. # This definition stops the following lines choking if HOME or CN
  5. # is undefined.
  6. HOME = .
  7. RANDFILE = $ENV::HOME/.rnd
  8. CN = "Not Defined"
  9. ####################################################################
  10. [ req ]
  11. default_bits = 1024
  12. default_keyfile = privkey.pem
  13. # Don't prompt for fields: use those in section directly
  14. prompt = no
  15. distinguished_name = req_distinguished_name
  16. x509_extensions = v3_ca # The extentions to add to the self signed cert
  17. string_mask = utf8only
  18. # req_extensions = v3_req # The extensions to add to a certificate request
  19. [ req_distinguished_name ]
  20. countryName = UK
  21. organizationName = OpenSSL Group
  22. # Take CN from environment so it can come from a script.
  23. commonName = $ENV::CN
  24. [ usr_cert ]
  25. # These extensions are added when 'ca' signs a request for an end entity
  26. # certificate
  27. basicConstraints=critical, CA:FALSE
  28. keyUsage=critical, nonRepudiation, digitalSignature, keyEncipherment
  29. # This will be displayed in Netscape's comment listbox.
  30. nsComment = "OpenSSL Generated Certificate"
  31. # PKIX recommendations harmless if included in all certificates.
  32. subjectKeyIdentifier=hash
  33. authorityKeyIdentifier=keyid
  34. [ v3_ca ]
  35. # Extensions for a typical CA
  36. # PKIX recommendation.
  37. subjectKeyIdentifier=hash
  38. authorityKeyIdentifier=keyid:always
  39. basicConstraints = critical,CA:true
  40. keyUsage = critical, cRLSign, keyCertSign