openssl.cnf 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. HOME = .
  2. RANDFILE = $ENV::HOME/.rnd
  3. oid_section = new_oids
  4. #[ CA_default ]
  5. dir = ./CA
  6. certs = $dir/certs
  7. crl_dir = $dir/crl
  8. database = $dir/index.txt
  9. unique_subject = yes
  10. new_certs_dir = $dir/newcerts
  11. certificate = $dir/cacert.pem
  12. serial = $dir/serial
  13. crlnumber = $crl_dir/crlnumber
  14. crl = $crl_dir/crl.pem
  15. private_key = $dir/private/cakey.pem
  16. RANDFILE = $dir/private/.rand
  17. default_days = 825
  18. default_crl_days = 30
  19. default_md = sha256
  20. preserve = no
  21. policy = policy_match
  22. [ ca ]
  23. default_ca = CA_default
  24. [ new_oids ]
  25. tsa_policy1 = 1.2.3.4.1
  26. tsa_policy2 = 1.2.3.4.5.6
  27. tsa_policy3 = 1.2.3.4.5.7
  28. iKEIntermediate = 1.3.6.1.5.5.8.2.2
  29. [ policy_match ]
  30. countryName = match
  31. stateOrProvinceName = match
  32. organizationName = match
  33. organizationalUnitName = optional
  34. commonName = supplied
  35. emailAddress = optional
  36. [ policy_anything ]
  37. countryName = optional
  38. stateOrProvinceName = optional
  39. localityName = optional
  40. organizationName = optional
  41. organizationalUnitName = optional
  42. commonName = supplied
  43. emailAddress = optional
  44. [ CA_default ]
  45. certs = $dir/certs
  46. crl_dir = $dir/crl
  47. database = $dir/index.txt
  48. unique_subject = yes
  49. new_certs_dir = $dir/newcerts
  50. certificate = $dir/cacert.pem
  51. serial = $dir/serial
  52. crlnumber = $crl_dir/crlnumber
  53. crl = $crl_dir/crl.pem
  54. private_key = $dir/private/cakey.pem
  55. RANDFILE = $dir/private/.rand
  56. default_days = 825
  57. default_crl_days = 30
  58. default_md = sha256
  59. preserve = no
  60. policy = policy_match
  61. [ CA_root ]
  62. x509_extensions = root_extensions
  63. [ root_extensions ]
  64. basicConstraints = critical, CA:TRUE, pathlen:1
  65. subjectKeyIdentifier = hash
  66. authorityKeyIdentifier = keyid:always, issuer:always
  67. keyUsage = critical, cRLSign, keyCertSign
  68. [ CA_VPN ]
  69. dir = ./rootCA
  70. x509_extensions = intermediate_extensions
  71. copy_extensions = copy
  72. [ CA_intermediate ]
  73. x509_extensions = intermediate_extensions
  74. copy_extensions = copy
  75. [ intermediate_extensions ]
  76. basicConstraints = critical, CA:TRUE, pathlen:0
  77. subjectKeyIdentifier = hash
  78. authorityKeyIdentifier = keyid:always, issuer:always
  79. keyUsage = critical, cRLSign, keyCertSign
  80. [ req ]
  81. default_bits = 4096
  82. default_keyfile = privkey.pem
  83. distinguished_name = req_distinguished_name
  84. attributes = req_attributes
  85. x509_extensions = v3_ca
  86. string_mask = utf8only
  87. [ req_distinguished_name ]
  88. countryName = Country Name (2 letter code)
  89. countryName_default = NL
  90. countryName_min = 2
  91. countryName_max = 2
  92. stateOrProvinceName = State or Province Name (full name)
  93. stateOrProvinceName_default = Noord-Brabant
  94. localityName = Locality Name (eg, city)
  95. localityName_default = Veldhoven
  96. 0.organizationName = Organization Name (eg, company)
  97. 0.organizationName_default = Dierkse DataManagement
  98. organizationalUnitName = Organizational Unit Name (eg, section)
  99. organizationalUnitName_default = Secure Digital Certificate Signing
  100. commonName = Common Name (e.g. server FQDN or YOUR name)
  101. commonName_max = 64
  102. emailAddress = Email Address
  103. emailAddress_default = certification@dierkse.nl
  104. emailAddress_max = 64
  105. [ req_attributes ]
  106. #challengePassword = A challenge password
  107. #challengePassword_min = 4
  108. #challengePassword_max = 20
  109. #unstructuredName = An optional company name
  110. [ v3_ca ]
  111. basicConstraints= CA:TRUE
  112. subjectKeyIdentifier= hash
  113. authorityKeyIdentifier= keyid:always,issuer:always
  114. [ server_cert ]
  115. basicConstraints= CA:FALSE
  116. subjectKeyIdentifier= hash
  117. authorityKeyIdentifier= keyid,issuer
  118. keyUsage= nonRepudiation, digitalSignature, keyEncipherment
  119. extendedKeyUsage= critical, serverAuth
  120. [ client_cert ]
  121. basicConstraints = CA:FALSE
  122. subjectKeyIdentifier = hash
  123. authorityKeyIdentifier = keyid,issuer
  124. keyUsage = nonRepudiation, digitalSignature, keyEncipherment
  125. extendedKeyUsage = critical, clientAuth
  126. [ email_cert ]
  127. basicConstraints = CA:FALSE
  128. subjectKeyIdentifier = hash
  129. authorityKeyIdentifier = keyid,issuer
  130. keyUsage = nonRepudiation, digitalSignature, keyEncipherment
  131. extendedKeyUsage = critial, emailProtection
  132. [ application_cert ]
  133. basicConstraints = CA:FALSE
  134. subjectKeyIdentifier = hash
  135. authorityKeyIdentifier = keyid,issuer
  136. keyUsage = nonRepudiation, digitalSignature, keyEncipherment
  137. [ vpn_cert ]
  138. basicConstraints = CA:FALSE
  139. subjectKeyIdentifier = hash
  140. authorityKeyIdentifier = keyid,issuer
  141. extendedKeyUsage = critical, iKEIntermediate
  142. #extendedKeyUsage = critical, serverAuth, iKEIntermediate
  143. # [ vpn_req_extensions ]
  144. # subjectAltName = @vpn_san
  145. # [ vpn_san ]
  146. # #DNS.1 = vpn.dierkse.nl
  147. # DNS.1 = iphone6plus