Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate .rnd file if it doesn't exist. #2074

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 5 additions & 0 deletions provision/provision.sh
Expand Up @@ -614,6 +614,11 @@ tools_install() {

nginx_setup() {
# Create an SSL key and certificate for HTTPS support.
if [[ ! -e /root/.rnd ]]; then
echo " * Generating Random Number for cert generation..."
vvvgenrnd="$(openssl rand -out /root/.rnd -hex 256 2>&1)"
echo "$vvvgenrnd"
fi
if [[ ! -e /etc/nginx/server-2.1.0.key ]]; then
echo " * Generating Nginx server private key..."
vvvgenrsa="$(openssl genrsa -out /etc/nginx/server-2.1.0.key 2048 2>&1)"
Expand Down