Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [ req ]
- default_bits = 2048
- distinguished_name = req_distinguished_name
- req_extensions = req_ext
- [ req_distinguished_name ]
- countryName = US
- stateOrProvinceName = Michigan
- localityName = Detroit
- organizationName = LEI
- commonName = nas.lei.com
- [ req_ext ]
- subjectAltName = @alt_names
- [alt_names]
- DNS.1 = nas.lei.com
- DNS.2 = 192.168.1.15
- DNS.3 =
- openssl req -out TEMP/%_CNAME%.req -newkey rsa:2048 -nodes -keyout TEMP/%_CNAME%.key -config TEMP/%_CNAME%.cnf
- ----
- You are about to based to enter information that will be incorporated into your certificate request.
- For some fields there will be a default value,
- If you enter '.', the field will be left blank.
- ----
- US []:
- Michigan []:
- etc...
- error, no objects specified in config file. Problems making Certificate Request
- US []: US
- REM Create .cnf file
- @echo off
- @echo [ req ]> TEMP/%_CNAME%.cnf
- @echo default_bits = 2048>> TEMP/%_CNAME%.cnf
- @echo distinguished_name = req_distinguished_name>> TEMP/%_CNAME%.cnf
- @echo req_extensions = req_ext>> TEMP/%_CNAME%.cnf
- @echo [ req_distinguished_name ]>> TEMP/%_CNAME%.cnf
- @echo countryName = US>> TEMP/%_CNAME%.cnf
- @echo stateOrProvinceName = Michigan>> TEMP/%_CNAME%.cnf
- @echo localityName = Detroit>> TEMP/%_CNAME%.cnf
- @echo organizationName = LEI>> TEMP/%_CNAME%.cnf
- @echo commonName = %_DNS%>> TEMP/%_CNAME%.cnf
- @echo [ req_ext ]>> TEMP/%_CNAME%.cnf
- @echo subjectAltName = @alt_names>> TEMP/%_CNAME%.cnf
- @echo [alt_names]>> TEMP/%_CNAME%.cnf
- @echo DNS.1 = %_DNS%>> TEMP/%_CNAME%.cnf
- @echo DNS.2 = %_DNS2%>> TEMP/%_CNAME%.cnf
- @echo DNS.3 = %_DNS3%>> TEMP/%_CNAME%.cnf
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement