From 34d91b9f97943df897bae76057d628a28cc8e488 Mon Sep 17 00:00:00 2001 From: neil Date: Sat, 23 Jan 2016 23:23:44 +0800 Subject: [PATCH] support fullchain. If the real cert path equals to the ca cert path, we will append the ca cert to the domain cert, which makes it a fullchain. --- le.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/le.sh b/le.sh index 5a7827a9..33652625 100755 --- a/le.sh +++ b/le.sh @@ -862,7 +862,12 @@ installcert() { if [ -f "$Le_RealCACertPath" ] ; then cp -p "$Le_RealCACertPath" "$Le_RealCACertPath".bak fi - cat "$CA_CERT_PATH" > "$Le_RealCACertPath" + if [ "$Le_RealCACertPath" == "$Le_RealCertPath" ] ; then + echo "" >> "$Le_RealCACertPath" + cat "$CA_CERT_PATH" >> "$Le_RealCACertPath" + else + cat "$CA_CERT_PATH" > "$Le_RealCACertPath" + fi fi