2
0

wolfssl_base.conf 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172
  1. # OpenSSL config: certificate authority (CA)
  2. # Default value
  3. [ default ]
  4. ca_name = _CA_NAME_ # CA name
  5. home = . # Top dir
  6. default_ca = ca # Default CA section
  7. name_opt = utf8,esc_ctrl,multiline,lname,align # Display UTF-8 characters
  8. # Certificate request
  9. [ req ]
  10. default_bits = 2048 # RSA key size
  11. encrypt_key = yes # Encrypted CA private key
  12. default_md = sha256 # Message Digest to use
  13. utf8 = yes # Input is UTF-8
  14. string_mask = utf8only # Emit UTF-8 strings
  15. prompt = no # Don't prompt for DN
  16. distinguished_name = ca_dn # DN section
  17. req_extensions = ca_ext # Desired extensions
  18. # CA certificate info
  19. [ ca_dn ]
  20. countryName = "US" # CA cert info
  21. stateOrProvinceName = "Wahington" # CA cert info
  22. organizationName = "Seattle" # CA cert info
  23. localityName = "WOLFSSL" # CA cert info
  24. organizationalUnitName = "_CA_DEPART_" # CA cert info
  25. commonName = "www.wolfssl.com" # Replaced during build proceduce
  26. # Extensions for signing CA certificate
  27. [ ca_ext ]
  28. keyUsage = critical,keyCertSign,cRLSign,digitalSignature # Limit key usage
  29. basicConstraints = critical,CA:true # Dont allow intermediary CA
  30. subjectKeyIdentifier = hash # SKI validation
  31. # CA operational settings
  32. [ ca ]
  33. default_ca = _CA_NAME_ # Default CA section
  34. # CA Section
  35. [ _CA_NAME_ ]
  36. certificate = $home/$ca_name.crt # CA certificate
  37. private_key = $home/private/$ca_name.key # CA private key
  38. new_certs_dir = $home/certs # Generated certificates
  39. database = $home/db/index # Index file of generated crt
  40. serial = $home/db/serial # Serial number file
  41. RANDFILE = $home/ca/private/random # Random file
  42. unique_subject = no # Dont require unique subject
  43. default_days = 3650 # How long to certify for
  44. default_md = sha256 # Message Digest to use
  45. policy = match_pol # Default naming policy
  46. email_in_dn = no # Dont add email to cert DN
  47. copy_extensions = copy # Copy extensions from CSR (!)
  48. x509_extensions = server_ext # Default cert extensions
  49. # Matching policy
  50. # Enforce that all cert issued by the CA match criteria
  51. # Useful for CA used internally with limited scope
  52. [ match_pol ]
  53. countryName = match
  54. stateOrProvinceName = match
  55. organizationName = match
  56. organizationalUnitName = optional
  57. commonName = supplied
  58. emailAddress = optional
  59. # Extension used when signing server cert
  60. [ _CERT_NAME_ ]
  61. basicConstraints = critical,CA:false # Dont allow intermediary CA
  62. nsCertType = server # Certificate type
  63. subjectKeyIdentifier = hash # SKI validation
  64. keyUsage = critical,digitalSignature,keyEncipherment # Define key usage
  65. extendedKeyUsage = clientAuth,serverAuth # key usage continued