From f3d648273f28ac5bfea08968da7180744afc5bec Mon Sep 17 00:00:00 2001 From: Matthew Holt Date: Sat, 30 Oct 2021 11:18:47 -0600 Subject: [PATCH] Store key before cert in transaction (close #149) --- crypto.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/crypto.go b/crypto.go index 558c18cf..ee4671f5 100644 --- a/crypto.go +++ b/crypto.go @@ -146,14 +146,14 @@ func (cfg *Config) saveCertResource(issuer Issuer, cert CertificateResource) err certKey := cert.NamesKey() all := []keyValue{ - { - key: StorageKeys.SiteCert(issuerKey, certKey), - value: cert.CertificatePEM, - }, { key: StorageKeys.SitePrivateKey(issuerKey, certKey), value: cert.PrivateKeyPEM, }, + { + key: StorageKeys.SiteCert(issuerKey, certKey), + value: cert.CertificatePEM, + }, { key: StorageKeys.SiteMeta(issuerKey, certKey), value: metaBytes,