From b88242f0579690f29af1346c91d04ded7dae2766 Mon Sep 17 00:00:00 2001 From: Russel Vela Date: Thu, 6 Jun 2024 09:55:49 -0600 Subject: [PATCH] fix(cloud-connector): Adds certificate ID Adds certificate ID to certificate request object on cloud connector certificateRetrieve function when not requesting the private key --- pkg/venafi/cloud/connector.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkg/venafi/cloud/connector.go b/pkg/venafi/cloud/connector.go index 89c9d311..ea4ec5a7 100644 --- a/pkg/venafi/cloud/connector.go +++ b/pkg/venafi/cloud/connector.go @@ -372,6 +372,8 @@ func (c *Connector) RetrieveCertificate(req *certificate.Request) (*certificate. return nil, err } err = req.CheckCertificate(certificates.Certificate) + // Add certificate id to the request + req.CertID = certificateId return certificates, err } else if statusCode == http.StatusConflict { // Http Status Code 409 means the certificate has not been signed by the ca yet. return nil, endpoint.ErrCertificatePending{CertificateID: req.PickupID}