Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

gracefully handle certificate error for Ext Repository #7575

Open
fbender opened this issue Jan 16, 2015 · 2 comments
Open

gracefully handle certificate error for Ext Repository #7575

fbender opened this issue Jan 16, 2015 · 2 comments
Labels

Comments

@fbender
Copy link

fbender commented Jan 16, 2015

In #7548, @taca indicated that BSD distros and (to my knowledge) some Linux distros (like Arch) do not include a root certificate storage by default. Furthermore, the root certificate storages differ between distors and especially old LTS releases, which are still supported (e.g. older RHEL, CentOS), may not contain the StartSSL root certificate.

Independent of whether changing the issuer or not, the mandatory certificate verification may fail on some setups since at least PHP 5.6 (this also includes temporary connection errors with the certificate verification server!). Any errors concerning a failed certificate verification should be handled gracefully in the extension repository (and I assume this also applies to LiveUpdate) instead of crashing Contao.

@leofeyer
Copy link
Member

What do you mean by "handled gracefully"? Using an insecure connection instead?

@fbender
Copy link
Author

fbender commented Jan 16, 2015

Sorry for being unclear. What I expect is an actionable Error message like:
Connection to repository refused: Could not validate encryption certificate. Please see the <a href="httpd://Contao.org/faq.html#connection-refused-Extension-repository">FAQ</a> for help.

The FAQ should show why such an error may be expected (no Root cert store, Root cert missing in Store, or transient error). Instead of linking to it, the help message could also be included in the error message. =

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants