apps.cnf 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. #
  2. # OpenSSL configuration file to create apps directory certificates
  3. #
  4. # This definition stops the following lines choking if HOME or CN
  5. # is undefined.
  6. HOME = .
  7. CN = "Not Defined"
  8. # Comment out the next line to ignore configuration errors
  9. config_diagnostics = 1
  10. ####################################################################
  11. [ req ]
  12. default_bits = 2048
  13. default_keyfile = privkey.pem
  14. # Don't prompt for fields: use those in section directly
  15. prompt = no
  16. distinguished_name = req_distinguished_name
  17. x509_extensions = v3_ca # The extensions to add to the self signed cert
  18. string_mask = utf8only
  19. # req_extensions = v3_req # The extensions to add to a certificate request
  20. [ req_distinguished_name ]
  21. countryName = UK
  22. organizationName = OpenSSL Group
  23. organizationalUnitName = FOR TESTING PURPOSES ONLY
  24. # Take CN from environment so it can come from a script.
  25. commonName = $ENV::CN
  26. [ usr_cert ]
  27. # These extensions are added when 'ca' signs a request for an end entity
  28. # certificate
  29. basicConstraints=critical, CA:FALSE
  30. keyUsage=critical, nonRepudiation, digitalSignature, keyEncipherment
  31. [ ec_cert ]
  32. # These extensions are added when 'ca' signs a request for an end entity
  33. # certificate
  34. basicConstraints=critical, CA:FALSE
  35. keyUsage=critical, nonRepudiation, digitalSignature, keyAgreement
  36. # PKIX recommendations harmless if included in all certificates.
  37. subjectKeyIdentifier=hash
  38. authorityKeyIdentifier=keyid
  39. [ v3_ca ]
  40. # Extensions for a typical CA
  41. # PKIX recommendation.
  42. subjectKeyIdentifier=hash
  43. authorityKeyIdentifier=keyid:always
  44. basicConstraints = critical,CA:true
  45. keyUsage = critical, cRLSign, keyCertSign