Conjur - CONJ0087E Failed to fetch JWKS from GitLab: certificate verify failed

Conjur - CONJ0087E Failed to fetch JWKS from GitLab: certificate verify failed

118
Created On 11/10/26 10:58 AM - Last Modified 11/10/26 16:10 PM


Symptom


When performing "Conjur-GitLab integration with JWT authentication ", the following error appears in the Conjur container logs (Master and/or Followers):

<14>1 2022-01-11T23:03:24.000+00:00 5cf7677358dd conjur-possum 299 - [meta sequenceId="7"] [origin=10.0.10.15] [request_id=83df2f6e-4452-44c4-b662-86f3fb7d828a] [tid=1468] CONJ00048I Authentication Error: #<Errors::Authentication::AuthnJwt::FetchJwksKeysFailed: CONJ00087E Failed to fetch JWKS from 'https://gitlab.domain.tld/-/jwks/'. Reason: '#<OpenSSL::SSL::SSLError: SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)>'>


Environment


12.0;12.1;12.2;12.4;12.3 Conjur Secrets Manager Enterprise (AAM-DAP formerly)  any version.

Cause


The GitLab application has a self-signed certificate or a certificate issued by a custom certificate authority (CA).

Resolution


Consider one of the following options:
A) Install a certificate in your GitLab application issued by a trusted CA
B) Install the custom CA certificate into the Conjur containers (master, standbys, followers) manually or by modifying the container image

As an example, these are the steps to manually import the custom CA certificate into a Conjur container:
1) Copy the certificate to the Conjur container:
# docker cp my-custom-ca.crt <container-name>:/etc/ssl/certs/my-custom-ca.crt

2) Get the certificate hash:
# docker exec <container-name> openssl x509 -noout -hash -in /etc/ssl/certs/my-custom-ca.crt 457cbd11

3) Create a symlink with the certificate hash (Format name: <hash><dot>0):
# docker exec <container-name> ln -s /etc/ssl/certs/my-custom-ca.crt /etc/ssl/certs/457cbd11.0


Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA1hj0000001YfaCAE&lang=en_US&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail