test.cnf 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  1. ####################################################################
  2. [ ca ]
  3. default_ca = CA_default # The default ca section
  4. ####################################################################
  5. [ CA_default ]
  6. dir = ./demoCA # Where everything is kept
  7. certs = $dir/certs # Where the issued certs are kept
  8. crl_dir = $dir/crl # Where the issued crl are kept
  9. database = $dir/index.txt # database index file.
  10. new_certs_dir = $dir/new_certs # default place for new certs.
  11. certificate = $dir/CAcert.pem # The CA certificate
  12. serial = $dir/serial # The current serial number
  13. crl = $dir/crl.pem # The current CRL
  14. private_key = $dir/private/CAkey.pem# The private key
  15. default_days = 365 # how long to certify for
  16. default_crl_days= 30 # how long before next CRL
  17. default_md = md5 # which md to use.
  18. # A few difference way of specifying how similar the request should look
  19. # For type CA, the listed attributes must be the same, and the optional
  20. # and supplied fields are just that :-)
  21. policy = policy_match
  22. # For the CA policy
  23. [ policy_match ]
  24. countryName = match
  25. stateOrProvinceName = match
  26. organizationName = match
  27. organizationalUnitName = optional
  28. commonName = supplied
  29. emailAddress = optional
  30. # For the 'anything' policy
  31. # At this point in time, you must list all acceptable 'object'
  32. # types.
  33. [ policy_anything ]
  34. countryName = optional
  35. stateOrProvinceName = optional
  36. localityName = optional
  37. organizationName = optional
  38. organizationalUnitName = optional
  39. commonName = supplied
  40. emailAddress = optional
  41. ####################################################################
  42. [ req ]
  43. default_bits = 2048
  44. default_keyfile = testkey.pem
  45. distinguished_name = req_distinguished_name
  46. encrypt_rsa_key = no
  47. # Make altreq be identical to req
  48. [ altreq ]
  49. default_bits = 2048
  50. default_keyfile = testkey.pem
  51. distinguished_name = req_distinguished_name
  52. encrypt_rsa_key = no
  53. [ req_distinguished_name ]
  54. countryName = C field
  55. countryName_value = AU
  56. stateOrProvinceName = SP field
  57. stateOrProvinceName_value =
  58. localityName = L field
  59. localityName_value = Brisbane
  60. organizationName = O field
  61. organizationName_value = CryptSoft Pty Ltd
  62. organizationalUnitName = OU field
  63. organizationalUnitName_value = .
  64. commonName = CN field
  65. commonName_value = Eric Young
  66. emailAddress = email field
  67. emailAddress_value = eay@mincom.oz.au