openssl.conf 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. config_diagnostics = 1
  2. ####################################################################
  3. [ ca ]
  4. default_ca = Zi3_CA
  5. [ Zi3_CA ]
  6. dir = $ENV::CA_DIR # Where everything is kept
  7. new_certs_dir = $dir/certs # default place for new certs.
  8. certs = $dir/certs # Where the issued certs are kept
  9. crl_dir = $dir/db/crl # Where the issued crl are kept
  10. crlnumber = $crl_dir/number # the current crl number
  11. crl = $dir/db/crl/crl.pem # The current CRL
  12. database = $dir/db/index.txt # database index file.
  13. serial = $dir/db/serial # The current serial number
  14. certificate = $dir/ca.pem # The CA certificate
  15. private_key = $dir/keys/ca.key # The private key
  16. name_opt = ca_default # Subject Name options
  17. cert_opt = ca_default # Certificate field options
  18. default_days = 1825 # how long to certify for
  19. default_crl_days= 30 # how long before next CRL
  20. default_md = default # use public key default MD
  21. preserve = no # keep passed DN ordering
  22. x509_extensions = usr_cert # The extensions to add to the cert
  23. crl_extensions = crl_ext # The extensiont to add to CRL certs
  24. policy = policy_root # CA must match everything, must supply email
  25. [ policy_root ]
  26. organizationName = match
  27. organizationalUnitName = match
  28. commonName = supplied
  29. emailAddress = supplied
  30. [ policy_inter ]
  31. organizationName = match
  32. organizationalUnitName = supplied
  33. commonName = supplied
  34. emailAddress = optional
  35. [ policy_req ]
  36. organizationName = match
  37. organizationalUnitName = match
  38. commonName = supplied
  39. emailAddress = optional
  40. [ v3_ca ]
  41. subjectKeyIdentifier = hash
  42. authorityKeyIdentifier = keyid:always, issuer
  43. basicConstraints = critical, CA:true
  44. keyUsage = cRLSign, keyCertSign
  45. subjectAltName = email:copy
  46. [ v3_intermediate_ca ]
  47. subjectKeyIdentifier = hash
  48. authorityKeyIdentifier = keyid:always,issuer
  49. basicConstraints = critical, CA:true, pathlen:0
  50. keyUsage = critical, digitalSignature, cRLSign, keyCertSign
  51. subjectAltName = email:copy
  52. [ v3_req ]
  53. basicConstraints = CA:FALSE
  54. keyUsage = nonRepudiation, digitalSignature, keyEncipherment
  55. [ crl_ext ]
  56. authorityKeyIdentifier = keyid:always
  57. [ usr_cert ]
  58. basicConstraints = CA:FALSE
  59. #extendedKeyUsage = critical, timeStamping
  60. subjectKeyIdentifier = hash
  61. authorityKeyIdentifier = keyid:always,issuer
  62. issuerAltName = issuer:copy
  63. subjectAltName = email:move
  64. ####################################################################
  65. [ req ]
  66. default_bits = 4096
  67. default_keyfile = key.pem
  68. distinguished_name = req_distinguished_name
  69. #attributes = req_attributes
  70. x509_extensions = v3_ca
  71. string_mask = utf8only
  72. [ req_distinguished_name ]
  73. 0.organizationName = Organization
  74. 0.organizationName_default = Zi3
  75. organizationalUnitName = Service
  76. organizationalUnitName_default = Testing
  77. commonName = Common Name (e.g. server FQDN or YOUR name)
  78. commonName_max = 64
  79. emailAddress = Email Address
  80. emailAddress_max = 64