From: Daniel Hokka Zakrisson <dhokka@cs.princeton.edu>
Date: Tue, 11 May 2010 10:30:36 +0000 (+0000)
Subject: Preserve the key as well.
X-Git-Tag: MyPLC-5.0-4~3
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=bd8c23219c9588299282630591eb620b1de59319;p=myplc.git

Preserve the key as well.
---

diff --git a/plc.d/ssl b/plc.d/ssl
index e7e3278..ab64a80 100755
--- a/plc.d/ssl
+++ b/plc.d/ssl
@@ -55,6 +55,7 @@ verify_or_generate_certificate() {
 	    [ "$(ssl_cname $crt)" != "$cname" ] ; then
             backup_file $crt
             backup_file $ca
+            backup_file $key
 	fi
     fi