Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LetsEncrypt added new CA's, setup script is broken. #48

Open
matthewprobasco opened this issue Jun 7, 2024 · 5 comments
Open

LetsEncrypt added new CA's, setup script is broken. #48

matthewprobasco opened this issue Jun 7, 2024 · 5 comments

Comments

@matthewprobasco
Copy link

matthewprobasco commented Jun 7, 2024

As of June 6 2024 Let's Encrypt added new CA's for issuing certs. As such, the setup script is not adding all intermediate CA's which certificates may be issued. https://letsencrypt.org/certificates/.

This is required or else there will be error of:
"SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))"
and
"HTTPSConnectionPool(host='ldap01.idm.nerotechsolutions.com', port=443): Max retries exceeded with url: /ipa/session/cookie (Caused by SSLError(SSLCertVerificationError(1, '[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1129)')))"

In addition, the web service doesnt send the full CA Chain, so the cert is untrusted.

matthewprobasco added a commit to matthewprobasco/freeipa-letsencrypt that referenced this issue Jun 10, 2024
reverted since the setup script will add the full chain as expected.

Closes freeipa#48
matthewprobasco added a commit to matthewprobasco/freeipa-letsencrypt that referenced this issue Jun 10, 2024
reverted since the setup script will add the full chain as expected.

Closes freeipa#48

Signed-off-by: Matthew Probasco <[email protected]>
@webprofusion-chrisc
Copy link

Hi, freeipa appears to be relying on knowing intermediates. Instead you should implicitly trust valid intermediates signed by a trusted root. If you need to know intermediates ahead of time things will fail, as intermediates can change overnight.

Intermediates exist as temporary issuers so that the CA doesn't have their root directly signing stuff all the time.

https://community.letsencrypt.org/t/freeipa-doesnt-see-the-full-certificate-chain-when-cn-e6/220278

@JavadHosseini
Copy link

Hi, I tried the script in #49, but still get the same error for ipa-certupdate command in script:
cannot connect to 'https://ipa1.example.com/ipa/json': [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:997)
all intermediate certificates has been installed.

@kimdre
Copy link

kimdre commented Aug 22, 2024

Same here.
Most tools return SSL retaled errors now:

ERROR: cannot connect to 'https://my.domain.tld/ipa/json': [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get local issuer certificate (_ssl.c:1133)

@rcritten
Copy link

Try adding the certificates manually to temporarily resolve the issues, see #50

Then apply the patch in #49 and run that.

@kimdre
Copy link

kimdre commented Aug 26, 2024

Thanks, that worked! :)

f-trivino pushed a commit to f-trivino/freeipa-letsencrypt that referenced this issue Sep 11, 2024
reverted since the setup script will add the full chain as expected.

Closes freeipa#48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants