From cba7750833f89106997fa5ecc9f769667943ada5 Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sun, 24 Feb 2019 14:24:38 +0100 Subject: [PATCH] fix: inverted cert and key. --- dumper.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dumper.go b/dumper.go index eedaad7..311d5af 100644 --- a/dumper.go +++ b/dumper.go @@ -100,7 +100,7 @@ func writeCert(dumpPath string, cert *Certificate, ext string, domainSubDir bool } } - return ioutil.WriteFile(certPath, cert.Key, 0666) + return ioutil.WriteFile(certPath, cert.Certificate, 0666) } func writeKey(dumpPath string, cert *Certificate, ext string, domainSubDir bool) error { @@ -112,7 +112,7 @@ func writeKey(dumpPath string, cert *Certificate, ext string, domainSubDir bool) } } - return ioutil.WriteFile(keyPath, cert.Certificate, 0666) + return ioutil.WriteFile(keyPath, cert.Key, 0666) } func extractPEMPrivateKey(account *Account) []byte {