Skip to content
This repository has been archived by the owner on Aug 30, 2021. It is now read-only.

Commit

Permalink
updating ssl generation script to check app root directory location a…
Browse files Browse the repository at this point in the history
…s safe-guard
  • Loading branch information
lirantal committed Dec 1, 2014
1 parent 586f0ad commit 176b619
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions scripts/generate-ssl-certs.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,13 @@
#!/bin/bash

if [ ! -e server.js ]
then
echo "Error: could not find main application server.js file"
echo "You should run the generate-ssl-certs.sh script from the main MEAN application root directory"
echo "i.e: bash scripts/generate-ssl-cers.sh"
exit -1
fi

echo "Generating self-signed certificates..."
mkdir -p ./config/sslcerts
openssl genrsa -out ./config/sslcerts/key.pem -aes256 1024
Expand Down

0 comments on commit 176b619

Please sign in to comment.