Hi all
while looking at https://github.com/phpmyadmin/phpmyadmin/issues/12146, I've realized that we do really poor job in telling user what went wrong with SSL certificates. The problem lies in the way PHP interacts with MySQL - it emits all important information as warnings and the only error you get from it is code 2002 without any text.
However all the important messages are shown as PHP warnings as can be seen here:
https://github.com/phpmyadmin/phpmyadmin/pull/12193
It's probably not the best approach, but at least it allows user to figure out what is wrong...