openssl-root.cnf 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. # OpenSSL configuration file for Hotspot 2.0 PKI (Root 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 = ./rootCA # 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 = usr_cert # The extentions to add to the cert
  27. name_opt = ca_default # Subject Name options
  28. cert_opt = ca_default # Certificate field options
  29. default_days = 365 # how long to certify for
  30. default_crl_days= 30 # how long before next CRL
  31. default_md = default # use public key default MD
  32. preserve = no # keep passed DN ordering
  33. policy = policy_match
  34. # For the CA policy
  35. [ policy_match ]
  36. countryName = match
  37. stateOrProvinceName = optional
  38. organizationName = match
  39. organizationalUnitName = optional
  40. commonName = supplied
  41. emailAddress = optional
  42. [ policy_anything ]
  43. countryName = optional
  44. stateOrProvinceName = optional
  45. localityName = optional
  46. organizationName = optional
  47. organizationalUnitName = optional
  48. commonName = supplied
  49. emailAddress = optional
  50. ####################################################################
  51. [ req ]
  52. default_bits = 2048
  53. default_keyfile = privkey.pem
  54. distinguished_name = req_distinguished_name
  55. attributes = req_attributes
  56. x509_extensions = v3_ca # The extentions to add to the self signed cert
  57. input_password = @PASSWORD@
  58. output_password = @PASSWORD@
  59. string_mask = utf8only
  60. [ req_distinguished_name ]
  61. countryName = Country Name (2 letter code)
  62. countryName_default = US
  63. countryName_min = 2
  64. countryName_max = 2
  65. localityName = Locality Name (eg, city)
  66. localityName_default = Tuusula
  67. 0.organizationName = Organization Name (eg, company)
  68. 0.organizationName_default = WFA Hotspot 2.0
  69. ##organizationalUnitName = Organizational Unit Name (eg, section)
  70. #organizationalUnitName_default =
  71. #@OU@
  72. commonName = Common Name (e.g. server FQDN or YOUR name)
  73. #@CN@
  74. commonName_max = 64
  75. emailAddress = Email Address
  76. emailAddress_max = 64
  77. [ req_attributes ]
  78. [ v3_req ]
  79. # Extensions to add to a certificate request
  80. basicConstraints = CA:FALSE
  81. keyUsage = nonRepudiation, digitalSignature, keyEncipherment
  82. subjectAltName=DNS:example.com,DNS:another.example.com
  83. [ v3_ca ]
  84. # Hotspot 2.0 PKI requirements
  85. subjectKeyIdentifier=hash
  86. basicConstraints = critical,CA:true
  87. keyUsage = critical, cRLSign, keyCertSign
  88. [ crl_ext ]
  89. # issuerAltName=issuer:copy
  90. authorityKeyIdentifier=keyid:always
  91. [ v3_OCSP ]
  92. basicConstraints = CA:FALSE
  93. keyUsage = nonRepudiation, digitalSignature, keyEncipherment
  94. extendedKeyUsage = OCSPSigning