-
Notifications
You must be signed in to change notification settings - Fork 58
MAGECLOUD-2521: Use TLS 1.2 #16
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -297,10 +297,8 @@ protected function connectHandshake( | |
// If all is good, switch socket to secure mode. We have to fall back | ||
// through the different modes | ||
$modes = array( | ||
STREAM_CRYPTO_METHOD_TLS_CLIENT, | ||
STREAM_CRYPTO_METHOD_SSLv3_CLIENT, | ||
STREAM_CRYPTO_METHOD_SSLv23_CLIENT, | ||
STREAM_CRYPTO_METHOD_SSLv2_CLIENT | ||
// TODO: Add STREAM_CRYPTO_METHOD_TLSv1_3_CLIENT in the future when it is supported by PHP | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Must we really force TLS 1.2 on the client side? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
@kandy , @piotrekkaminski agreed to TLS 1.2 for Magento 2.3. As far as client vs server. I skimmed through PCI DSS and that PCI information supplement I've linked to above, and I haven't seen it make a distinction for different versions based on whether or not we are creating the TLS or receiving it. From what I can tell, it seems that PCI wants ALL TLS connects to be either TLS 1.1 or 1.2, but "strongly encourages" 1.2. I'm not a lawyer, and I've only skimmed through the document, so if I am misinterpreting this, please let me know and we can make corrections. |
||
STREAM_CRYPTO_METHOD_TLSv1_2_CLIENT | ||
); | ||
|
||
$success = false; | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not supporting other old modes, is this approved by PO? Have you run build to make sure this is not causing any problem?