mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-05-11 05:55:12 +00:00
add tls.combined field to vault cert backend
This commit is contained in:
@ -80,10 +80,13 @@ 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),
|
||||
"meta": string(jDat),
|
||||
"tls.cert": pub,
|
||||
"tls.key": key,
|
||||
"tls.combined": pub + "\n" + key,
|
||||
"meta": string(jDat),
|
||||
}
|
||||
_, err = v.client.Write(v.certPath(name), data)
|
||||
return err
|
||||
|
Reference in New Issue
Block a user