Skip to content

Commit

Permalink
Merge pull request #494 from Venafi/cloud-cert-id-fix
Browse files Browse the repository at this point in the history
fix(cloud-connector): Adds certificate ID
  • Loading branch information
rvelaVenafi authored Jun 6, 2024
2 parents 38f28d3 + b88242f commit aa37719
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 aa37719

Please sign in to comment.