Skip to content

Remove SSL certificate handling from CurlClient#47

Merged
wozozo merged 1 commit intomasterfrom
no-ca-bundle
Apr 30, 2025
Merged

Remove SSL certificate handling from CurlClient#47
wozozo merged 1 commit intomasterfrom
no-ca-bundle

Conversation

@wozozo
Copy link
Contributor

@wozozo wozozo commented Apr 21, 2025

fix #31

This pull request simplifies the CurlClient implementation by removing code related to handling SSL certificate errors and the associated CA bundle. These changes streamline the error-handling logic and remove unused functionality.

Simplification of SSL error handling:

  • lib/HttpClient/CurlClient.php: Removed the logic that handled specific SSL certificate errors (CURLE_SSL_CACERT, CURLE_SSL_PEER_CERTIFICATE, and CURLE_SSL_CACERT_BADFILE). This includes removing the addition of custom headers and the use of a CA bundle for retrying requests.

Removal of unused methods:

  • lib/HttpClient/CurlClient.php: Deleted the caBundle method, which was used to retrieve the path to the CA bundle file. This method is no longer needed after the removal of the SSL error-handling logic.

This commit removes the handling of SSL certificate errors in the CurlClient class. The specific checks for SSL-related errors (CURLE_SSL_CACERT, CURLE_SSL_PEER_CERTIFICATE, CURLE_SSL_CACERT_BADFILE) and the associated logic for setting the CA bundle have been eliminated. This simplifies the error handling process and removes the dependency on a specific CA bundle file.
@wozozo wozozo merged commit 03d404a into master Apr 30, 2025
12 checks passed
@wozozo wozozo deleted the no-ca-bundle branch April 30, 2025 00:56
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

Successfully merging this pull request may close these issues.

deprecate ca bundle

2 participants

Comments