test.cnf 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #
  2. # SSLeay example configuration file.
  3. # This is mostly being used for generation of certificate requests.
  4. #
  5. ####################################################################
  6. [ ca ]
  7. default_ca = CA_default # The default ca section
  8. ####################################################################
  9. [ CA_default ]
  10. dir = ./demoCA # Where everything is kept
  11. certs = $dir/certs # Where the issued certs are kept
  12. crl_dir = $dir/crl # Where the issued crl are kept
  13. database = $dir/index.txt # database index file.
  14. new_certs_dir = $dir/new_certs # default place for new certs.
  15. certificate = $dir/CAcert.pem # The CA certificate
  16. serial = $dir/serial # The current serial number
  17. crl = $dir/crl.pem # The current CRL
  18. private_key = $dir/private/CAkey.pem# The private key
  19. default_days = 365 # how long to certify for
  20. default_crl_days= 30 # how long before next CRL
  21. default_md = md5 # which md to use.
  22. # A few difference way of specifying how similar the request should look
  23. # For type CA, the listed attributes must be the same, and the optional
  24. # and supplied fields are just that :-)
  25. policy = policy_match
  26. # For the CA policy
  27. [ policy_match ]
  28. countryName = match
  29. stateOrProvinceName = match
  30. organizationName = match
  31. organizationalUnitName = optional
  32. commonName = supplied
  33. emailAddress = optional
  34. # For the 'anything' policy
  35. # At this point in time, you must list all acceptable 'object'
  36. # types.
  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. ####################################################################
  46. [ req ]
  47. default_bits = 2048
  48. default_keyfile = testkey.pem
  49. distinguished_name = req_distinguished_name
  50. encrypt_rsa_key = no
  51. [ req_distinguished_name ]
  52. countryName = Country Name (2 letter code)
  53. countryName_default = AU
  54. countryName_value = AU
  55. stateOrProvinceName = State or Province Name (full name)
  56. stateOrProvinceName_default = Queensland
  57. stateOrProvinceName_value =
  58. localityName = Locality Name (eg, city)
  59. localityName_value = Brisbane
  60. organizationName = Organization Name (eg, company)
  61. organizationName_default =
  62. organizationName_value = CryptSoft Pty Ltd
  63. organizationalUnitName = Organizational Unit Name (eg, section)
  64. organizationalUnitName_default =
  65. organizationalUnitName_value = .
  66. commonName = Common Name (eg, YOUR name)
  67. commonName_value = Eric Young
  68. emailAddress = Email Address
  69. emailAddress_value = eay@mincom.oz.au