Lines Matching defs:CTL_BASE
60 set CTL_BASE=unbound_control
86 if exist %CTL_BASE%.key (
87 echo %CTL_BASE%.key exists
90 echo generating %CTL_BASE%.key
91 "%SSL_PROGRAM%" genrsa -out %CTL_BASE%.key %BITS% || echo could not genrsa && exit 1
131 echo create %CTL_BASE%.pem (signed client certificate)
132 "%SSL_PROGRAM%" req -key %CTL_BASE%.key -config request.cfg -new | "%SSL_PROGRAM%" x509 -req -days %DAYS% -CA %SVR_BASE%_trust.pem -CAkey %SVR_BASE%.key -CAcreateserial -%HASH% -out %CTL_BASE%.pem
134 if not exist %CTL_BASE%.pem (
135 echo could not create %CTL_BASE%.pem
139 rem "%SSL_PROGRAM%" x509 -in %CTL_BASE%.pem -addtrust clientAuth -out %CTL_BASE%_trust.pem
142 rem echo "create %CTL_BASE%_browser.pfx (web client certificate)"
146 rem "%SSL_PROGRAM%" pkcs12 -export -in %CTL_BASE%_trust.pem -inkey %CTL_BASE%.key -name "unbound remote control client cert" -out %CTL_BASE%_browser.pfx -password "pass:" || echo could not create browser certificate && exit 1
150 del /F /Q /S %CTL_BASE%_trust.pem