Skip to content

Commit

Permalink
Merge pull request #3658 from gciavarrini/fix-openssl
Browse files Browse the repository at this point in the history
  • Loading branch information
danail-branekov authored Dec 12, 2024
2 parents 400b3f0 + a496003 commit da9b9d7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions scripts/create-new-user.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,12 @@ createCert() {
trap "rm -f $csr_file" EXIT
csr_name="$(echo ${RANDOM} | shasum | head -c 40)"

# Check if openssl is available
if ! command -v openssl &>/dev/null; then
echo "Error: 'openssl' is not installed or not available in PATH." >&2
exit 1
fi

openssl req -new -newkey rsa:4096 \
-keyout "${priv_key_file}" \
-out "${csr_file}" \
Expand Down

0 comments on commit da9b9d7

Please sign in to comment.