sslconf.txt 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. ##================================================================
  2. ##============== Example OpenSSL configuration file ==============
  3. ##================================================================
  4. # References:
  5. #
  6. # /etc/ssl/openssl.conf
  7. # http://www.openssl.org/docs/apps/config.html
  8. # http://www.openssl.org/docs/apps/x509v3_config.html
  9. [ ca ]
  10. default_ca = my_ca
  11. [ my_ca ]
  12. certificate = test-ca.crt
  13. private_key = test-ca.key
  14. database = index
  15. serial = serial
  16. new_certs_dir = newcerts
  17. default_crl_days = 5
  18. default_days = 3653
  19. default_md = sha1
  20. policy = my_policy
  21. x509_extensions = v3_usr
  22. [ my_policy ]
  23. countryName = supplied
  24. organizationName = match
  25. commonName = supplied
  26. [ req ]
  27. distinguished_name = my_req_dn
  28. x509_extensions = v3_ca
  29. prompt = no
  30. [ v3_ca ]
  31. basicConstraints = CA:TRUE
  32. subjectKeyIdentifier = hash
  33. authorityKeyIdentifier = keyid:always,issuer:always
  34. [ v3_usr ]
  35. basicConstraints = CA:FALSE
  36. subjectKeyIdentifier = hash
  37. authorityKeyIdentifier = keyid,issuer
  38. [ my_req_dn ]
  39. C=NL
  40. O=PolarSSL