openssl.cnf 5.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. # OpenSSL configuration file for Hotspot 2.0 PKI (Intermediate CA)
  2. HOME = .
  3. RANDFILE = $ENV::HOME/.rnd
  4. oid_section = new_oids
  5. [ new_oids ]
  6. #logotypeoid=1.3.6.1.5.5.7.1.12
  7. ####################################################################
  8. [ ca ]
  9. default_ca = CA_default # The default ca section
  10. ####################################################################
  11. [ CA_default ]
  12. dir = ./demoCA # Where everything is kept
  13. certs = $dir/certs # Where the issued certs are kept
  14. crl_dir = $dir/crl # Where the issued crl are kept
  15. database = $dir/index.txt # database index file.
  16. #unique_subject = no # Set to 'no' to allow creation of
  17. # several certificates with same subject
  18. new_certs_dir = $dir/newcerts # default place for new certs.
  19. certificate = $dir/cacert.pem # The CA certificate
  20. serial = $dir/serial # The current serial number
  21. crlnumber = $dir/crlnumber # the current crl number
  22. # must be commented out to leave a V1 CRL
  23. crl = $dir/crl.pem # The current CRL
  24. private_key = $dir/private/cakey.pem# The private key
  25. RANDFILE = $dir/private/.rand # private random number file
  26. x509_extensions = ext_client # The extentions to add to the cert
  27. name_opt = ca_default # Subject Name options
  28. cert_opt = ca_default # Certificate field options
  29. # Extension copying option: use with caution.
  30. copy_extensions = copy
  31. default_days = 365 # how long to certify for
  32. default_crl_days= 30 # how long before next CRL
  33. default_md = default # use public key default MD
  34. preserve = no # keep passed DN ordering
  35. policy = policy_match
  36. # For the CA policy
  37. [ policy_match ]
  38. countryName = supplied
  39. stateOrProvinceName = optional
  40. organizationName = supplied
  41. organizationalUnitName = optional
  42. commonName = supplied
  43. emailAddress = optional
  44. [ policy_osu_server ]
  45. countryName = match
  46. stateOrProvinceName = optional
  47. organizationName = match
  48. organizationalUnitName = supplied
  49. commonName = supplied
  50. emailAddress = optional
  51. [ policy_anything ]
  52. countryName = optional
  53. stateOrProvinceName = optional
  54. localityName = optional
  55. organizationName = optional
  56. organizationalUnitName = optional
  57. commonName = supplied
  58. emailAddress = optional
  59. ####################################################################
  60. [ req ]
  61. default_bits = 2048
  62. default_keyfile = privkey.pem
  63. distinguished_name = req_distinguished_name
  64. attributes = req_attributes
  65. x509_extensions = v3_ca # The extentions to add to the self signed cert
  66. input_password = @PASSWORD@
  67. output_password = @PASSWORD@
  68. string_mask = utf8only
  69. [ req_distinguished_name ]
  70. countryName = Country Name (2 letter code)
  71. countryName_default = FI
  72. countryName_min = 2
  73. countryName_max = 2
  74. localityName = Locality Name (eg, city)
  75. localityName_default = Tuusula
  76. 0.organizationName = Organization Name (eg, company)
  77. 0.organizationName_default = @DOMAIN@
  78. ##organizationalUnitName = Organizational Unit Name (eg, section)
  79. #organizationalUnitName_default =
  80. #@OU@
  81. commonName = Common Name (e.g. server FQDN or YOUR name)
  82. #@CN@
  83. commonName_max = 64
  84. emailAddress = Email Address
  85. emailAddress_max = 64
  86. [ req_attributes ]
  87. [ v3_ca ]
  88. # Hotspot 2.0 PKI requirements
  89. subjectKeyIdentifier=hash
  90. authorityKeyIdentifier=keyid:always,issuer
  91. basicConstraints = critical, CA:true, pathlen:0
  92. keyUsage = critical, cRLSign, keyCertSign
  93. authorityInfoAccess = OCSP;URI:@OCSP_URI@
  94. # For SP intermediate CA
  95. #subjectAltName=critical,otherName:1.3.6.1.4.1.40808.1.1.1;UTF8String:engExample OSU
  96. #nameConstraints=permitted;DNS:.@DOMAIN@
  97. #1.3.6.1.5.5.7.1.12=ASN1:SEQUENCE:LogotypeExtn
  98. [ v3_osu_server ]
  99. basicConstraints = critical, CA:true, pathlen:0
  100. keyUsage = critical, keyEncipherment
  101. #@ALTNAME@
  102. #logotypeoid=ASN1:SEQUENCE:LogotypeExtn
  103. 1.3.6.1.5.5.7.1.12=ASN1:SEQUENCE:LogotypeExtn
  104. [LogotypeExtn]
  105. communityLogos=EXP:0,SEQUENCE:LogotypeInfo
  106. [LogotypeInfo]
  107. # note: implicit tag converted to explicit for CHOICE
  108. direct=EXP:0,SEQUENCE:LogotypeData
  109. [LogotypeData]
  110. image=SEQUENCE:LogotypeImage
  111. [LogotypeImage]
  112. imageDetails=SEQUENCE:LogotypeDetails
  113. imageInfo=SEQUENCE:LogotypeImageInfo
  114. [LogotypeDetails]
  115. mediaType=IA5STRING:image/png
  116. logotypeHash=SEQUENCE:HashAlgAndValues
  117. logotypeURI=SEQUENCE:URI
  118. [HashAlgAndValues]
  119. value1=SEQUENCE:HashAlgAndValueSHA256
  120. #value2=SEQUENCE:HashAlgAndValueSHA1
  121. [HashAlgAndValueSHA256]
  122. hashAlg=SEQUENCE:sha256_alg
  123. hashValue=FORMAT:HEX,OCTETSTRING:@LOGO_HASH256@
  124. [HashAlgAndValueSHA1]
  125. hashAlg=SEQUENCE:sha1_alg
  126. hashValue=FORMAT:HEX,OCTETSTRING:@LOGO_HASH1@
  127. [sha256_alg]
  128. algorithm=OID:sha256
  129. [sha1_alg]
  130. algorithm=OID:sha1
  131. [URI]
  132. uri=IA5STRING:@LOGO_URI@
  133. [LogotypeImageInfo]
  134. # default value color(1), component optional
  135. #type=IMP:0,INTEGER:1
  136. fileSize=INTEGER:7549
  137. xSize=INTEGER:128
  138. ySize=INTEGER:80
  139. language=IMP:4,IA5STRING:zxx
  140. [ crl_ext ]
  141. # issuerAltName=issuer:copy
  142. authorityKeyIdentifier=keyid:always
  143. [ v3_OCSP ]
  144. basicConstraints = CA:FALSE
  145. keyUsage = nonRepudiation, digitalSignature, keyEncipherment
  146. extendedKeyUsage = OCSPSigning
  147. [ ext_client ]
  148. basicConstraints=CA:FALSE
  149. subjectKeyIdentifier=hash
  150. authorityKeyIdentifier=keyid,issuer
  151. authorityInfoAccess = OCSP;URI:@OCSP_URI@
  152. #@ALTNAME@
  153. extendedKeyUsage = clientAuth
  154. [ ext_server ]
  155. # Hotspot 2.0 PKI requirements
  156. basicConstraints=critical, CA:FALSE
  157. subjectKeyIdentifier=hash
  158. authorityKeyIdentifier=keyid,issuer
  159. authorityInfoAccess = OCSP;URI:@OCSP_URI@
  160. #@ALTNAME@
  161. extendedKeyUsage = critical, serverAuth
  162. keyUsage = critical, keyEncipherment