Lines Matching refs:CTL_BASE
58 CTL_BASE=unbound_control
102 if test -f $CTL_BASE.key; then
103 echo "$CTL_BASE.key exists"
105 echo "generating $CTL_BASE.key"
106 openssl genrsa -out $CTL_BASE.key $BITS || error "could not genrsa"
145 echo "create $CTL_BASE.pem (signed client certificate)"
146 openssl req -key $CTL_BASE.key -config request.cfg -new | openssl x509 -req -days $DAYS -CA $SVR_BASE"_trust.pem" -CAkey $SVR_BASE.key -CAcreateserial -$HASH -out $CTL_BASE.pem
147 test -f $CTL_BASE.pem || error "could not create $CTL_BASE.pem"
149 # openssl x509 -in $CTL_BASE.pem -addtrust clientAuth -out $CTL_BASE"_trust.pem"
152 # echo "create $CTL_BASE""_browser.pfx (web client certificate)"
156 # openssl pkcs12 -export -in $CTL_BASE"_trust.pem" -inkey $CTL_BASE.key -name "unbound remote control client cert" -out $CTL_BASE"_browser.pfx" -password "pass:" || error "could not create browser certificate"
159 chmod o-rw $SVR_BASE.pem $SVR_BASE.key $CTL_BASE.pem $CTL_BASE.key
163 rm -f $CTL_BASE"_trust.pem" $SVR_BASE"_trust.pem" $SVR_BASE"_trust.srl"