Skip to content

Conversation

@schlessera
Copy link
Member

Fixes #5779

In order to make Requests default certificates in Phars not on work using the Utils/http_request() helper, but also when using the Requests class directly, a bootstrap step is being added that uses Requests::set_certificate_path() using the Utils\get_default_cacert() helper.

@schlessera schlessera requested a review from a team as a code owner May 5, 2023 06:59
@schlessera schlessera added scope:distribution Related to distribution bug labels May 5, 2023
@schlessera schlessera added this to the 2.8.0 milestone May 5, 2023
Bootstrap\DeclareAbstractBaseCommand::class,
Bootstrap\IncludeFrameworkAutoloader::class,
Bootstrap\ConfigureRunner::class,
Bootstrap\ExtractDefaultCaCertificate::class,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is a bit obfuscated as I switched all of the class names to the safer ::class notation, but this is the one that was added:

Bootstrap\ExtractDefaultCaCertificate::class

@schlessera schlessera merged commit acfccbc into main May 5, 2023
@schlessera schlessera deleted the fix/extract-certificate-for-all-requests branch May 5, 2023 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug scope:distribution Related to distribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Requests default certificate fails to load from Phar

2 participants