Skip to content

Magento 2 and SSL connection to MySQL #61

@magento-engcom-team

Description

@magento-engcom-team

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

Original Report: magento/magento2#13561 by @craigcarnell

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions