Preserve the key as well.
Daniel Hokka Zakrisson [Tue, 11 May 2010 10:30:36 +0000 (10:30 +0000)]
plc.d/ssl

index e7e3278..ab64a80 100755 (executable)
--- 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