-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Enable Magento 2 to connect MySQL through SSL. #25398
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
Enable Magento 2 to connect MySQL through SSL. #25398
Conversation
Hi @nmalevanec. Thank you for your contribution
For more details, please, review the Magento Contributor Guide documentation. |
Hi @VladimirZaets, thank you for the review. |
Hi @nmalevanec, thank you for your contribution! |
Hi @bnymn! It looks like this feature needs docs. We would love it if you created a PR to devdocs as well. See magento/devdocs#5951. |
In case others run across this and wonder how to configure this apart from running setup:install, the following is what I did on an EL7 system moments ago to successfully connect a 2.3.4 site to Azure Database for MariaDB which is configured to enforce SSL connections:
What this does is add the following to the
This did not work by itself, and I also had to add these same
These options correspond to these PDO options:
|
Original PR #18075
Enable Magento 2 to connect MySQL through SSL.
Description
We have made some modification to enable Magento 2 connect MySQL through SSL.
During the installation, there was no option to force MySQL connection through SSL. With this PR, the following options will be enabled for you to use SSL.
Fixed Issues (if relevant)
Manual testing scenarios
There are two scenarios to test this feature. First one is by installing Magento via command-line, and the second one is using the Magento Setup UI via browser.
1. Installing via Command-line
client-key.pem
,client-cert.pem
,ca.pem
.driver_options
is added intoenv.php
file.2. Installing via Magento Setup UI
client-key.pem
,client-cert.pem
,ca.pem
.driver_options
is added intoenv.php
file.Contribution checklist