Skip to content

Commit

Permalink
fix(cloud-connector): Adds certificate ID
Browse files Browse the repository at this point in the history
Adds certificate ID to certificate request object on cloud connector certificateRetrieve function when not requesting the private key
  • Loading branch information
rvelaVenafi committed Jun 6, 2024
1 parent 38f28d3 commit b88242f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/venafi/cloud/connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit b88242f

Please sign in to comment.