From 5980ebc79a74767311456082bd84db86a92c4312 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 27 Aug 2016 15:44:03 +0800 Subject: [PATCH] minor, do not output the key file if using signcsr --- acme.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/acme.sh b/acme.sh index 9f525a65..e797fb63 100755 --- a/acme.sh +++ b/acme.sh @@ -2086,7 +2086,11 @@ issue() { cat "$CERT_PATH" _info "Your cert is in $( __green " $CERT_PATH ")" - _info "Your cert key is in $( __green " $CERT_KEY_PATH ")" + + if [ -f "$CERT_KEY_PATH" ] ; then + _info "Your cert key is in $( __green " $CERT_KEY_PATH ")" + fi + cp "$CERT_PATH" "$CERT_FULLCHAIN_PATH" if [ ! "$USER_PATH" ] || [ ! "$IN_CRON" ] ; then