fix: inverted cert and key.
This commit is contained in:
parent
f7141a44aa
commit
cba7750833
@ -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 {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user