style95 commented on a change in pull request #2427: Support client certificate
on cli and nginx
URL:
https://github.com/apache/incubator-openwhisk/pull/2427#discussion_r125222691
##########
File path: ansible/roles/nginx/files/genssl.sh
##########
@@ -8,22 +8,71 @@ if [ "$#" -ne 1 ]; then
echo "usage: $0 [common name: host or ip]"
fi
CN=$1
+TYPE=$2
+PASSWORD="openwhisk"
## generates a (self-signed) certificate
## uncomment to regenerate the key
-#openssl genrsa -out "$SCRIPTDIR/openwhisk-key.pem" 2048
+#openssl genrsa -out "$SCRIPTDIR/openwhisk-server-key.pem" 2048
-echo generating certificate request
-openssl req -new \
- -key "$SCRIPTDIR/openwhisk-key.pem" \
- -nodes \
+if [ "$TYPE" == "server" ]; then
+ echo generating server certificate request
+ openssl req -new \
+ -key "$SCRIPTDIR/openwhisk-server-key.pem" \
Review comment:
If custom `{{ nginx.ssl.cert }}` is configured, certificate generation step
will be skipped.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services