diff --git a/make-cert.sh b/make-cert.sh index 4df2d29..be1afdb 100755 --- a/make-cert.sh +++ b/make-cert.sh @@ -10,7 +10,6 @@ CA_NAME="${CA_NAME:-Azurite Emulator CA}" STORAGE_ACCOUNT_NAME="${STORAGE_ACCOUNT_NAME:-azuritelocal}" mkdir -p "$CA_DIR" if [[ ! -f "${CA_DIR}/ca_cert.pem" || ! -f "${CA_DIR}/ca_key.pem" ]]; then - echo "Creating CA certificate and key..." openssl req \ -x509 -noenc -text \ -newkey rsa:4096 \ @@ -20,7 +19,7 @@ if [[ ! -f "${CA_DIR}/ca_cert.pem" || ! -f "${CA_DIR}/ca_key.pem" ]]; then -subj "/CN=$CA_NAME" \ -addext "basicConstraints=critical,CA:TRUE,pathlen:0" HASH=$(openssl x509 -in "${CA_DIR}/ca_cert.pem" -noout -hash 2>/dev/null) - ln -sf ca_cert.pem "${CA_DIR}/$HASH.0" # Check it + ln -sf ca_cert.pem "${CA_DIR}/$HASH.0" fi ALTNAMES=() for endpoint in blob queue table; do