cyberark / conjur-openapi-spec

OpenAPI v3 specification for Conjur / DAP v10+
https://conjur.org
Apache License 2.0
11 stars 2 forks source link

Fix self-signed certificate errors #222

Closed john-odonnell closed 1 year ago

john-odonnell commented 1 year ago

Desired Outcome

Tests against Conjur Enterprise are failing due to self-signed certificates not being trusted. From logs:

urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='conjur-master.mycompany.local', port=443): Max retries exceeded with url: /authn/demo/admin/authenticate (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: self-signed certificate in certificate chain (_ssl.c:997)')))

Implemented Changes

Previously, the scripts to set up Conjur Enterprise with conjur-intro ran the following command, which generated new certificates, and reloaded Conjur:

./bin/dap --import-custom-certificates

I believe this is now failing because the certificates are not being updated in the HAProxy container. That said, this bug should be handled separately, and there was no need to ever include this bit, as there are Conjur-generated certificates available without it.

Connected Issue/Story

N/A

Definition of Done

At least 1 todo must be completed in the sections below for the PR to be merged.

Changelog

Test coverage

Documentation

Behavior

Security