Skip to content

Commit

Permalink
fix gen-admission-secret.sh
Browse files Browse the repository at this point in the history
Signed-off-by: yahaa <1477765176@qq.com>
  • Loading branch information
yahaa authored and Thor-wl committed Sep 18, 2021
1 parent b319cb2 commit 98d04f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions installer/dockerfile/webhook-manager/gen-admission-secret.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ EOF
openssl req -x509 -new -nodes -key ${CERTDIR}/ca.key -subj "/CN=${SERVICE}.${NAMESPACE}.svc" -days 3650 -out ${CERTDIR}/ca.crt

openssl genrsa -out ${CERTDIR}/server.key 2048
openssl req -new -key ${CERTDIR}/server.key -subj "/CN=${SERVICE}.${NAMESPACE}.svc" -days 3650 -out ${CERTDIR}/server.csr -config ${CERTDIR}/csr.conf
openssl req -new -key ${CERTDIR}/server.key -subj "/CN=${SERVICE}.${NAMESPACE}.svc" -out ${CERTDIR}/server.csr -config ${CERTDIR}/csr.conf

openssl x509 -req -in ${CERTDIR}/server.csr -CA ${CERTDIR}/ca.crt -CAkey ${CERTDIR}/ca.key \
-CAcreateserial -out ${CERTDIR}/server.crt \
-extensions v3_req -extfile ${CERTDIR}/csr.conf
-extensions v3_req -extfile ${CERTDIR}/csr.conf -days 3650
}

function createSecret() {
Expand Down

0 comments on commit 98d04f1

Please sign in to comment.