How can I resolve certificate validation errors?
Last Updated: | Applicable Hub Versions: Cloud
Last Updated: | Applicable Hub Versions: Cloud
To resolve a certificate validation error, we recommend checking the certificate in your browser or connecting to the repository using OpenSSL. See the sections below for more information.
Note: The instructions below are specific to Google Chrome browsers. If using a different browser, instructions may be slightly different.
Visit the end repository and click the padlock icon in your browser. Then, select the certificate.
Click the General tab to see who the certificate was issued by.
A browser usually completes the certification path automatically which is different when connecting from Hub, so you may need to double check with OpenSSL. To connect to the repository using OpenSSL, see the following instructions.
Run the following command (changing the repo.server.name:1234
to the hostname:port
of the repository):
openssl s_client -showcerts -connect repo.server.name:1234
Check that the output includes Verification: OK
and includes one -----BEGIN CERTIFICATE-----
section for each node in the Certificate chain.
If the output does not contain the messages above, the intermediate certificate(s) are missing from the path and the repository server will need to be updated to include the missing certificate(s).
If the output does contain the messages above and Hub is still encountering the error, Hub may be receiving a different certificate response due to the network path it uses.
Try to run the OpenSSL command from outside of your corporate network (i.e., turn off VPN if you're running the command from your own computer).