add tls.combined field to vault cert backend
@@ -80,9 +80,12 @@ func (v *vaultStorage) StoreCertificate(name string, cert *acme.CertificateResou
if err != nil {
return err
}
+ pub := string(cert.Certificate)
+ key := string(cert.PrivateKey)
data := map[string]interface{}{
- "tls.cert": string(cert.Certificate),
- "tls.key": string(cert.PrivateKey),
+ "tls.cert": pub,
+ "tls.key": key,
+ "tls.combined": pub + "\n" + key,
"meta": string(jDat),
}
_, err = v.client.Write(v.certPath(name), data)
