Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.72 KB | None | 0 0
  1. [ req ]
  2. default_bits = 2048
  3. distinguished_name = req_distinguished_name
  4. req_extensions = req_ext
  5. [ req_distinguished_name ]
  6. countryName = US
  7. stateOrProvinceName = Michigan
  8. localityName = Detroit
  9. organizationName = LEI
  10. commonName = nas.lei.com
  11. [ req_ext ]
  12. subjectAltName = @alt_names
  13. [alt_names]
  14. DNS.1 = nas.lei.com
  15. DNS.2 = 192.168.1.15
  16. DNS.3 =
  17.  
  18. openssl req -out TEMP/%_CNAME%.req -newkey rsa:2048 -nodes -keyout TEMP/%_CNAME%.key -config TEMP/%_CNAME%.cnf
  19.  
  20. ----
  21. You are about to based to enter information that will be incorporated into your certificate request.
  22. For some fields there will be a default value,
  23. If you enter '.', the field will be left blank.
  24. ----
  25. US []:
  26. Michigan []:
  27. etc...
  28.  
  29. error, no objects specified in config file. Problems making Certificate Request
  30.  
  31. US []: US
  32.  
  33. REM Create .cnf file
  34. @echo off
  35. @echo [ req ]> TEMP/%_CNAME%.cnf
  36. @echo default_bits = 2048>> TEMP/%_CNAME%.cnf
  37. @echo distinguished_name = req_distinguished_name>> TEMP/%_CNAME%.cnf
  38. @echo req_extensions = req_ext>> TEMP/%_CNAME%.cnf
  39. @echo [ req_distinguished_name ]>> TEMP/%_CNAME%.cnf
  40. @echo countryName = US>> TEMP/%_CNAME%.cnf
  41. @echo stateOrProvinceName = Michigan>> TEMP/%_CNAME%.cnf
  42. @echo localityName = Detroit>> TEMP/%_CNAME%.cnf
  43. @echo organizationName = LEI>> TEMP/%_CNAME%.cnf
  44. @echo commonName = %_DNS%>> TEMP/%_CNAME%.cnf
  45. @echo [ req_ext ]>> TEMP/%_CNAME%.cnf
  46. @echo subjectAltName = @alt_names>> TEMP/%_CNAME%.cnf
  47. @echo [alt_names]>> TEMP/%_CNAME%.cnf
  48. @echo DNS.1 = %_DNS%>> TEMP/%_CNAME%.cnf
  49. @echo DNS.2 = %_DNS2%>> TEMP/%_CNAME%.cnf
  50. @echo DNS.3 = %_DNS3%>> TEMP/%_CNAME%.cnf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement