Guest User

Untitled

a guest
Oct 18th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.96 KB | None | 0 0
  1. #
  2. # OpenSSL configuration file.
  3. #
  4.  
  5. # Establish working directory.
  6.  
  7. dir = .
  8.  
  9. [ ca ]
  10. default_ca = CA_default
  11.  
  12. [ CA_default ]
  13. serial = $dir/serial
  14. database = $dir/certindex.txt
  15. new_certs_dir = $dir/certs
  16. certificate = $dir/cacert.pem
  17. private_key = $dir/private/cakey.pem
  18. default_days = 365
  19. default_md = md5
  20. preserve = no
  21. email_in_dn = no
  22. nameopt = default_ca
  23. certopt = default_ca
  24. policy = policy_match
  25.  
  26. [ policy_match ]
  27. countryName = match
  28. stateOrProvinceName = match
  29. organizationName = match
  30. organizationalUnitName = optional
  31. commonName = supplied
  32. emailAddress = optional
  33.  
  34. [ req ]
  35. default_bits = 1024 # Size of keys
  36. default_keyfile = key.pem # name of generated keys
  37. default_md = md5 # message digest algorithm
  38. string_mask = nombstr # permitted characters
  39. distinguished_name = req_distinguished_name
  40. req_extensions = v3_req
  41.  
  42. [ req_distinguished_name ]
  43. # Variable name Prompt string
  44. #------------------------- ----------------------------------
  45. 0.organizationName = Organization Name (company)
  46. organizationalUnitName = Organizational Unit Name (department, division)
  47. emailAddress = Email Address
  48. emailAddress_max = 40
  49. localityName = Locality Name (city, district)
  50. stateOrProvinceName = State or Province Name (full name)
  51. countryName = Country Name (2 letter code)
  52. countryName_min = 2
  53. countryName_max = 2
  54. commonName = Common Name (hostname, IP, or your name)
  55. commonName_max = 64
  56.  
  57. # Default values for the above, for consistency and less typing.
  58. # Variable name Value
  59. #------------------------ ------------------------------
  60. 0.organizationName_default = My Company
  61. localityName_default = My Town
  62. stateOrProvinceName_default = State or Providence
  63. countryName_default = US
  64.  
  65. [ v3_ca ]
  66. basicConstraints = CA:TRUE
  67. subjectKeyIdentifier = hash
  68. authorityKeyIdentifier = keyid:always,issuer:always
  69.  
  70. [ v3_req ]
  71. basicConstraints = CA:FALSE
  72. subjectKeyIdentifier = hash
Add Comment
Please, Sign In to add comment