Skip to content

Commit f3d6482

Browse files
committed
Store key before cert in transaction (close #149)
1 parent 1c89882 commit f3d6482

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

crypto.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -146,14 +146,14 @@ func (cfg *Config) saveCertResource(issuer Issuer, cert CertificateResource) err
146146
certKey := cert.NamesKey()
147147

148148
all := []keyValue{
149-
{
150-
key: StorageKeys.SiteCert(issuerKey, certKey),
151-
value: cert.CertificatePEM,
152-
},
153149
{
154150
key: StorageKeys.SitePrivateKey(issuerKey, certKey),
155151
value: cert.PrivateKeyPEM,
156152
},
153+
{
154+
key: StorageKeys.SiteCert(issuerKey, certKey),
155+
value: cert.CertificatePEM,
156+
},
157157
{
158158
key: StorageKeys.SiteMeta(issuerKey, certKey),
159159
value: metaBytes,

0 commit comments

Comments
 (0)