sinatra and nginx client cert authentication setup, repository for a follow-along of a guide at https://www.integralist.co.uk/posts/client-cert-authentication/
25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

79 lines
1.7KB

  1. dir = .
  2. [ ca ]
  3. default_ca = CA_default
  4. [ CA_default ]
  5. serial = $dir/serial
  6. database = $dir/certindex.txt
  7. new_certs_dir = $dir/certs
  8. certificate = $dir/ca.crt
  9. private_key = $dir/private/ca.key
  10. default_days = 365
  11. default_md = sha256
  12. default_crl_days = 30
  13. preserve = no
  14. email_in_dn = yes
  15. nameopt = default_ca
  16. certopt = default_ca
  17. policy = policy_match
  18. crl_dir = $dir/revoked
  19. crlnumber = $crl_dir/crlnumber
  20. crl_extensions = crl_ext
  21. x509_extensions = usr_cert
  22. copy_extensions = copy
  23. rand_serial = no
  24. [ policy_match ]
  25. countryName = optional
  26. stateOrProvinceName = optional
  27. organizationName = optional
  28. organizationalUnitName = optional
  29. commonName = supplied
  30. emailAddress = supplied
  31. [ crl_ext ]
  32. authorityKeyIdentifier = keyid
  33. [ usr_cert ]
  34. basicConstraints = CA:FALSE
  35. subjectKeyIdentifier = hash
  36. authorityKeyIdentifier = keyid, issuer
  37. crlDistributionPoints = URI:http://localhost/ca/crl.pem
  38. [ req ]
  39. default_bits = 2048
  40. default_keyfile = key.pem
  41. default_md = md5
  42. string_mask = utf8only
  43. distinguished_name = req_distinguished_name
  44. req_extensions = v3_req
  45. [ req_distinguished_name ]
  46. 0.organizationName = .
  47. organizationalUnitName = .
  48. emailAddress = luka.licina@geneza.com
  49. emailAddress_max = 40
  50. localityName = .
  51. stateOrProvinceName = .
  52. countryName = SI
  53. countryName_max = .
  54. countryName_max = .
  55. commonName = TheServer
  56. commonName_max = 64
  57. 0.organizationName_default = .
  58. localityName_default = .
  59. stateOrProvinceName_default = .
  60. countryName_default = SI
  61. [ v3_ca ]
  62. basicConstraints = CA:TRUE
  63. subjectKeyIdentifier = hash
  64. authorityKeyIdentifier = keyid:always,issuer:always
  65. [ v3_req ]
  66. basicConstraints = CA:FALSE
  67. subjectKeyIdentifier = hash