Skip to content

Commit

Permalink
fix: add check for non-empty domain
Browse files Browse the repository at this point in the history
  • Loading branch information
dhirajsb committed Jul 12, 2024
1 parent 6d85a5d commit bec7aa9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/generate_certs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
DOMAIN=$1
if [ -z ${DOMAIN} ]; then
echo "Missing command line parameter for certificate domain"
exit 1
fi
mkdir -p certs
# create CA cert
openssl req -x509 -sha256 -nodes -days 365 -newkey rsa:2048 -subj "/O=modelregistry Inc./CN=$DOMAIN" -keyout certs/domain.key -out certs/domain.crt
Expand Down

0 comments on commit bec7aa9

Please sign in to comment.