forked from TrueCloudLab/certificates
Merge pull request #1376 from smallstep/fix-1375
Use vaultcas ttl as a duration string
This commit is contained in:
commit
1180e33228
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue