client.conf 1.1 KB

123456789101112131415161718192021222324252627
  1. #req 总配置
  2. [ req ]
  3. default_bits = 2048
  4. distinguished_name = req_distinguished_name #使用 req_distinguished_name配置模块
  5. req_extensions = req_ext #使用 req_ext配置模块
  6. [ req_distinguished_name ]
  7. countryName = Country Name (2 letter code)
  8. countryName_default = CN
  9. stateOrProvinceName = State or Province Name (full name)
  10. stateOrProvinceName_default = ShanXi
  11. localityName = Locality Name (eg, city)
  12. localityName_default = TaiYuan
  13. organizationName = Organization Name (eg, company)
  14. organizationName_default = DuYong
  15. commonName = Common Name (e.g. server FQDN or YOUR name)
  16. commonName_max = 64
  17. commonName_default = localhost #这里的Common Name 写主要域名即可(注意:这个域名也要在alt_names的DNS.x里) 此处尤为重要,需要用该服务名字填写到客户端的代码中
  18. [ req_ext ]
  19. subjectAltName = @alt_names #使用 alt_names配置模块
  20. [alt_names]
  21. DNS.1 = localhost
  22. DNS.2 = tyduyong.com
  23. DNS.3 = www.tyduyong.com
  24. IP = 127.0.0.1