Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[HttpClient] Add optioncrypto_method to set the minimum TLS version and make it default to v1.2#50274

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fabpot merged 1 commit intosymfony:6.3fromnicolas-grekas:hc-ssl-options
May 12, 2023

Conversation

@nicolas-grekas
Copy link
Member

@nicolas-grekasnicolas-grekas commentedMay 9, 2023
edited
Loading

QA
Branch?6.3
Bug fix?no
New feature?yes
Deprecations?no
Tickets-
LicenseMIT
Doc PR-

Idea borrowed fromasync-aws/aws#1402 by@GrahamCampbell

Note that Firefox/Chrome disabled support for TLS < 1.2 in 2020 and TLSv1.2 is available since 2008.

javiereguiluz reacted with rocket emoji
@symfonysymfony deleted a comment fromcarsonbotMay 9, 2023
@nicolas-grekasnicolas-grekasforce-pushed thehc-ssl-options branch 6 times, most recently from368b912 to38f0aa1CompareMay 9, 2023 14:46
@stof
Copy link
Member

stof commentedMay 9, 2023

I don't see where you actually configure the min TLS version of the amp/socket TLS context in this PR. Is this actually implemented in this PR ?
Side note, the default in amp/socket is TLS 1.2, so the current behavior for what is supported in symfony/http-client depends on the client being used.

$options['local_cert'] &&$context =$context->withCertificate(newCertificate($options['local_cert'],$options['local_pk']));
$options['ciphers'] &&$context =$context->withCiphers($options['ciphers']);
$options['capture_peer_cert_chain'] &&$context =$context->withPeerCapturing();
$options['crypto_method'] &&$context =$context->withMinimumVersion($options['crypto_method']);
Copy link
MemberAuthor

Choose a reason for hiding this comment

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

@stof this is the line you're looking for

@nicolas-grekasnicolas-grekas changed the title[HttpClient] Add optioncrypto_method to set the minimum SSL version and make it default to TLSv1.2[HttpClient] Add optioncrypto_method to set the minimum TLS/SSL version and make it default to TLSv1.2May 9, 2023
@nicolas-grekasnicolas-grekas changed the title[HttpClient] Add optioncrypto_method to set the minimum TLS/SSL version and make it default to TLSv1.2[HttpClient] Add optioncrypto_method to set the minimum SSL/TLS version and make it default to TLSv1.2May 9, 2023
@nicolas-grekas
Copy link
MemberAuthor

PR updated to target 6.3 in case we'd like to merge it now.

Status: needs review

@nicolas-grekasnicolas-grekas changed the title[HttpClient] Add optioncrypto_method to set the minimum SSL/TLS version and make it default to TLSv1.2[HttpClient] Add optioncrypto_method to set the minimum TLS version and make it default to TLSv1.2May 10, 2023
@nicolas-grekasnicolas-grekas changed the title[HttpClient] Add optioncrypto_method to set the minimum TLS version and make it default to TLSv1.2[HttpClient] Add optioncrypto_method to set the minimum TLS version and make it default to v1.2May 10, 2023
@fabpot
Copy link
Member

Thank you@nicolas-grekas.

@GrahamCampbell
Copy link
Contributor

FYI, this has now similarly been implemented in Guzzle 7.6.0, though without the change to the default, not just because I feel it is arguably breaking, but also because Guzzle tends to have people using much older technology including versions of curl that may not even have the needed constant defined.

nicolas-grekas added a commit that referenced this pull requestSep 28, 2024
…(HypeMC)This PR was merged into the 6.4 branch.Discussion----------[HttpClient] Add `crypto_method` to scoped client options| Q             | A| ------------- | ---| Branch?       | 6.4| Bug fix?      | yes| New feature?  | no| Deprecations? | no| Issues        | -| License       | MITWhile working on something else I've noticed that the `crypto_method` option wasn't added for scoped clients in#50274. I'm not sure if this was intentional or not, but as far as I can tell, there's no reason for the option to not be there, so I'm guessing it was an oversight.Commits-------e274ee4 [HttpClient] Add `crypto_method` to scoped client options
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@javiereguiluzjaviereguiluzjaviereguiluz left review comments

@stofstofstof left review comments

@fabpotfabpotfabpot approved these changes

+1 more reviewer

@GrahamCampbellGrahamCampbellGrahamCampbell requested changes

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Projects

None yet

Milestone

6.3

Development

Successfully merging this pull request may close these issues.

6 participants

@nicolas-grekas@stof@fabpot@GrahamCampbell@javiereguiluz@carsonbot

[8]ページ先頭

©2009-2025 Movatter.jp