Skip to content

Commit da9b9d7

Browse files
Merge pull request #3658 from gciavarrini/fix-openssl
2 parents 400b3f0 + a496003 commit da9b9d7

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

scripts/create-new-user.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ createCert() {
1111
trap "rm -f $csr_file" EXIT
1212
csr_name="$(echo ${RANDOM} | shasum | head -c 40)"
1313

14+
# Check if openssl is available
15+
if ! command -v openssl &>/dev/null; then
16+
echo "Error: 'openssl' is not installed or not available in PATH." >&2
17+
exit 1
18+
fi
19+
1420
openssl req -new -newkey rsa:4096 \
1521
-keyout "${priv_key_file}" \
1622
-out "${csr_file}" \

0 commit comments

Comments
 (0)