Lines Matching refs: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
139 echo create %CTL_BASE%.pem (signed client certificate)
140 "%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% -extfile request.cfg -extensions v3_req -out %CTL_BASE%.pem
142 if not exist %CTL_BASE%.pem (
143 echo could not create %CTL_BASE%.pem
147 rem "%SSL_PROGRAM%" x509 -in %CTL_BASE%.pem -addtrust clientAuth -out %CTL_BASE%_trust.pem
150 rem echo "create %CTL_BASE%_browser.pfx (web client certificate)"
154 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
158 del /F /Q /S %CTL_BASE%_trust.pem