Skip to content

certificate verify failed #7

@maxadamo

Description

@maxadamo

Although I have set NOMAD_CACERT, and my certificate is valid:

$ curl https://nomad-ui.mydomain.org:4646/
<a href="/ui/">Temporary Redirect</a>.

I get this error:

requests.exceptions.SSLError: HTTPSConnectionPool(host='nomad-ui.mydomain.org', port=4646): Max retries exceeded with url: /v1/allocations?prefix=3147c68d&namespace=default (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get issuer certificate (_ssl.c:1000)')))

Is this happening because I am not using NOMAD_CLIENT_CERT and NOMAD_CLIENT_KEY?

I am not sure, however, if I set NOMAD_SKIP_VERIFY (export NOMAD_SKIP_VERIFY=true), I still get this other warning message:

/Users/massimiliano.adamo/.local/pipx/venvs/nomad-tools/lib/python3.12/site-packages/urllib3/connectionpool.py:1099: InsecureRequestWarning: Unverified HTTPS request is being made to host 'nomad-ui.geant.org'. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#tls-warnings

Hence I created a PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions