blob: f6436af77a0aeecfa4604dc13c99956ce4d48c4e [file] [log] [blame]
#!/bin/bash
set -ex
if [ -z "$1" ]; then
cat <<- EndOfMessage
First argument should be the domain for the OpenWhisk deployment.
Note: By default the Nginx config file assumes the pattern '*.openwhisk'.
EndOfMessage
exit 1
fi
mkdir -p certs
openssl req -x509 -newkey rsa:2048 -keyout certs/key.pem -out certs/cert.pem -nodes -subj "/CN=$1" -days 365