mirror of
https://github.com/smallstep/certificates.git
synced 2024-11-11 07:11:00 +00:00
Merge pull request #1376 from smallstep/fix-1375
Use vaultcas ttl as a duration string
This commit is contained in:
commit
1180e33228
@ -215,7 +215,7 @@ func (v *VaultCAS) createCertificate(cr *x509.CertificateRequest, lifetime time.
|
||||
Bytes: cr.Raw,
|
||||
})),
|
||||
"format": "pem_bundle",
|
||||
"ttl": lifetime.Seconds(),
|
||||
"ttl": lifetime.String(),
|
||||
}
|
||||
|
||||
secret, err := v.client.Logical().Write(v.config.PKIMountPath+"/sign/"+vaultPKIRole, vaultReq)
|
||||
|
Loading…
Reference in New Issue
Block a user