Skip to content

Magento 2 and SSL connection to MySQL #13561

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

Closed
csdougliss opened this issue Feb 8, 2018 · 4 comments
Closed

Magento 2 and SSL connection to MySQL #13561

csdougliss opened this issue Feb 8, 2018 · 4 comments
Labels
feature request Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed non-issue Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release

Comments

@csdougliss
Copy link
Contributor

csdougliss commented Feb 8, 2018

Preconditions

  1. Magento 2.2.2
  2. MySQL 5.7.x

Steps to reproduce

  1. In env.php there should be a way to specify optional secure connection details which can then be used:
$this->resource->ssl_set($clientKey, $clientCert, $caCert, $caPath, $cipher);

To establish a secure connection to mysql.

Expected result

  1. Secure connection

Actual result

  1. I don't believe this is supported?

Example of what I mean:
https://stackoverflow.com/questions/9738712/connect-to-remote-mysql-server-with-ssl-from-php
http://blog.machek.co.uk/2016/06/php-with-mysql-and-ssl.html

@magento-engcom-team magento-engcom-team added the Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed label Feb 8, 2018
@magento-engcom-team magento-engcom-team added Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed labels Mar 12, 2018
@magento-engcom-team
Copy link
Contributor

@craigcarnell, thank you for your report.
This seems to be correct Magento behavior. Please refer to the Community Forums or the Magento Stack Exchange site for advice or general discussion about this.
Otherwise you may submit Pull Request with the suggested changes.

@bnymn
Copy link
Contributor

bnymn commented Apr 4, 2018

Hi @craigcarnell,

You can pass your SSL connection configurations inside of the env.php as follows.

screenshot from 2018-04-04 08-38-58

For more information about driver_options parameter please follow this link.

@magento-engcom-team
Copy link
Contributor

Hi @craigcarnell. Thank you for the report. We are moving your feature request to the special project. You can track this issue here: magento/community-features#61

@bnymn bnymn mentioned this issue Sep 16, 2018
4 tasks
@magento-engcom-team magento-engcom-team added the Fixed in 2.3.x The issue has been fixed in 2.3 release line label Jul 7, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Fixed in 2.3.x The issue has been fixed in 2.3 release line Issue: Clear Description Gate 2 Passed. Manual verification of the issue description passed Issue: Confirmed Gate 3 Passed. Manual verification of the issue completed. Issue is confirmed Issue: Format is valid Gate 1 Passed. Automatic verification of issue format passed non-issue Reproduced on 2.1.x The issue has been reproduced on latest 2.1 release Reproduced on 2.2.x The issue has been reproduced on latest 2.2 release Reproduced on 2.3.x The issue has been reproduced on latest 2.3 release
Projects
None yet
Development

No branches or pull requests

4 participants