ec-ca-openssl.cnf 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. # OpenSSL configuration file for Suite B
  2. HOME = .
  3. RANDFILE = $ENV::HOME/.rnd
  4. oid_section = new_oids
  5. [ new_oids ]
  6. [ ca ]
  7. default_ca = CA_default
  8. [ CA_default ]
  9. dir = ./ec-ca
  10. certs = $dir/certs
  11. crl_dir = $dir/crl
  12. database = $dir/index.txt
  13. #unique_subject = no
  14. new_certs_dir = $dir/newcerts
  15. certificate = $dir/cacert.pem
  16. serial = $dir/serial
  17. crlnumber = $dir/crlnumber
  18. crl = $dir/crl.pem
  19. private_key = $dir/private/cakey.pem
  20. RANDFILE = $dir/private/.rand
  21. x509_extensions = ext_client
  22. name_opt = ca_default
  23. cert_opt = ca_default
  24. copy_extensions = copy
  25. default_days = 3650
  26. default_crl_days= 30
  27. default_md = default
  28. preserve = no
  29. policy = policy_match
  30. [ policy_match ]
  31. countryName = match
  32. stateOrProvinceName = optional
  33. organizationName = match
  34. organizationalUnitName = optional
  35. commonName = supplied
  36. #emailAddress = optional
  37. [ policy_anything ]
  38. countryName = optional
  39. stateOrProvinceName = optional
  40. localityName = optional
  41. organizationName = optional
  42. organizationalUnitName = optional
  43. commonName = supplied
  44. #emailAddress = optional
  45. [ req ]
  46. distinguished_name = req_distinguished_name
  47. attributes = req_attributes
  48. x509_extensions = v3_ca
  49. string_mask = utf8only
  50. [ req_distinguished_name ]
  51. countryName = Country Name (2 letter code)
  52. countryName_default = FI
  53. countryName_min = 2
  54. countryName_max = 2
  55. localityName = Locality Name (eg, city)
  56. localityName_default = Helsinki
  57. 0.organizationName = Organization Name (eg, company)
  58. 0.organizationName_default = w1.fi
  59. commonName = Common Name (e.g. server FQDN or YOUR name)
  60. #@CN@
  61. commonName_max = 64
  62. [ req_attributes ]
  63. [ v3_ca ]
  64. subjectKeyIdentifier=hash
  65. authorityKeyIdentifier=keyid:always,issuer
  66. basicConstraints = critical, CA:true, pathlen:0
  67. keyUsage = critical, cRLSign, keyCertSign
  68. [ crl_ext ]
  69. # issuerAltName=issuer:copy
  70. authorityKeyIdentifier=keyid:always
  71. [ ext_client ]
  72. basicConstraints=CA:FALSE
  73. subjectKeyIdentifier=hash
  74. authorityKeyIdentifier=keyid,issuer
  75. #@ALTNAME@
  76. extendedKeyUsage = clientAuth
  77. keyUsage = digitalSignature, keyEncipherment
  78. [ ext_server ]
  79. basicConstraints=critical, CA:FALSE
  80. subjectKeyIdentifier=hash
  81. authorityKeyIdentifier=keyid,issuer
  82. #@ALTNAME@
  83. extendedKeyUsage = critical, serverAuth
  84. keyUsage = digitalSignature, keyEncipherment