fix: remove unnecessary echo statement when creating CA certificate and key

This commit is contained in:
2026-03-24 07:43:19 +01:00
parent 47efc09d18
commit c3c078fa7f

View File

@@ -10,7 +10,6 @@ CA_NAME="${CA_NAME:-Azurite Emulator CA}"
STORAGE_ACCOUNT_NAME="${STORAGE_ACCOUNT_NAME:-azuritelocal}" STORAGE_ACCOUNT_NAME="${STORAGE_ACCOUNT_NAME:-azuritelocal}"
mkdir -p "$CA_DIR" mkdir -p "$CA_DIR"
if [[ ! -f "${CA_DIR}/ca_cert.pem" || ! -f "${CA_DIR}/ca_key.pem" ]]; then if [[ ! -f "${CA_DIR}/ca_cert.pem" || ! -f "${CA_DIR}/ca_key.pem" ]]; then
echo "Creating CA certificate and key..."
openssl req \ openssl req \
-x509 -noenc -text \ -x509 -noenc -text \
-newkey rsa:4096 \ -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" \ -subj "/CN=$CA_NAME" \
-addext "basicConstraints=critical,CA:TRUE,pathlen:0" -addext "basicConstraints=critical,CA:TRUE,pathlen:0"
HASH=$(openssl x509 -in "${CA_DIR}/ca_cert.pem" -noout -hash 2>/dev/null) 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 fi
ALTNAMES=() ALTNAMES=()
for endpoint in blob queue table; do for endpoint in blob queue table; do