MySQL SSL connection

Nextcloud version (eg, 10.0.2): 12 (latest)
Operating system and version (eg, Ubuntu 16.04): Debian 9
Apache or nginx version (eg, Apache 2.4.25): Apache 2.4
PHP version (eg, 5.6): 7.0
Is this the first time you’ve seen this error?: yes

Can you reliably replicate it? (If so, please outline steps): yes

The issue you are facing: my MySQL instance requires clients connect via SSL. How do I configure the config.php to allow SSL client connections to MySQL database backend? My error log (Apache/PHP) shows that NextCloud is unable to connect - SSL required.

Just to be clear this is MySQL backend and not the SSL for https:// front end.

The output of your Nextcloud log in Admin > Logging:

The output of your config.php file in /path/to/nextcloud (make sure you remove any identifiable information!):

The output of your Apache/nginx/system log in /var/log/____:

Remember, this information may be requested if it isn’t supplied; for fastest response please provide as much as you can :heart: Feel free to use a pastebin service, otherwise log files can be indented with 4 spaces on each line to present them in a friendlier way on the forum.


Hey all. I am doing a similar setup and have issues as well connecting to my mysql database which requires SSL (I am using Azures Managed MySQL DB). Was this solved or did somebody find a workaround? Best

1 Like

Same here. Any help would be appreciated

What have you tried so far?