fix: remove unnecessary echo statement when creating CA certificate and key
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user