# SSL/TLS mariadb

**URL:** https://forum.shopware.com/t/ssl-tls-mariadb/69335
**Category:** Administration (EN)
**Created:** [2. September 2020 um 12:48 UTC](https://forum.shopware.com/t/ssl-tls-mariadb/69335 "2020-09-02T12:48:06Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![ognjen](https://avatars.discourse-cdn.com/v4/letter/o/bc79bd/32.png) [@ognjen](https://forum.shopware.com/u/ognjen)
#### Post date: [2. September 2020 um 12:48 UTC](https://forum.shopware.com/t/ssl-tls-mariadb/69335/1 "2020-09-02T12:48:06Z")

</div>

Hello everyone,

Does shopware can work with a database which enforces **SSL connections**?  
For example, if we have shopware on Amazon cloud and MariaDB on Google Cloud, important is to use an SSL connection.

I’m getting next error:

 ![](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/e/e1e111cae45af2e95ceb95148e608e864909f809.png)

---

<div class="post-metadata">

### Author: ![Timmy\_Clark](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.shopware.com/timmy_clark/32/23750_2.png) [@Timmy\_Clark](https://forum.shopware.com/u/Timmy_Clark)
#### Post date: [11. September 2020 um 12:06 UTC](https://forum.shopware.com/t/ssl-tls-mariadb/69335/2 "2020-09-11T12:06:18Z")

</div>

Hi Ognjen,

&nbsp;

Shopware can’t connect to an database that enforces a SLL connection.

You need to modify the source code in order to get this going,  
Connection creation:&nbsp;[https://github.com/shopware/platform/blob/2b8c0e3d5bf4025f360ec59ed0f24b2dcf9c15ff/src/Core/Kernel.php#L161](https://github.com/shopware/platform/blob/2b8c0e3d5bf4025f360ec59ed0f24b2dcf9c15ff/src/Core/Kernel.php#L161)

[https://www.doctrine-project.org/projects/doctrine-dbal/en/2.10/reference/configuration.html#mysqli](https://www.doctrine-project.org/projects/doctrine-dbal/en/2.10/reference/configuration.html#mysqli)  
**ssl parameters**

![Doctrine](https://europe1.discourse-cdn.com/flex013/uploads/shopware/original/2X/1/1818cdccc877eca08646fc3ae5d25ebc74da7d8d.png) **Doctrine**

[Configuration - Doctrine Database Abstraction Layer (DBAL)](https://www.doctrine-project.org/projects/doctrine-dbal/en/2.10/reference/configuration.html#mysqli)

Doctrine Database Abstraction Layer Documentation: Configuration

[src/Core/Kernel.php:161](https://github.com/shopware/platform/blob/2b8c0e3d5bf4025f360ec59ed0f24b2dcf9c15ff/src/Core/Kernel.php#L161)

```
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;_$parameters = [_

```

&nbsp;

---

<div class="post-metadata">

### Author: ![ognjen](https://avatars.discourse-cdn.com/v4/letter/o/bc79bd/32.png) [@ognjen](https://forum.shopware.com/u/ognjen)
#### Post date: [23. Oktober 2020 um 11:47 UTC](https://forum.shopware.com/t/ssl-tls-mariadb/69335/3 "2020-10-23T11:47:14Z")

</div>

Thanks a lot, @Timmy\_Clark‍ .

Shimmy from GitHub sent me a possible solution: [SSL/TLS mariadb · Issue #1323 · shopware/platform · GitHub](https://github.com/shopware/platform/issues/1323)

I will write here when I check it 🙂
