Merge pull request #1376 from smallstep/fix-1375

Use vaultcas ttl as a duration string
This commit is contained in:
Mariano Cano 2023-05-04 20:42:28 -07:00 committed by GitHub
commit 1180e33228
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)