I enabled SSL for MySQL 8.0.17 and created a new user that requires SSL. From command line, everything worked fine.
I then saved login-ssl.php (raw.githubusercontent.com) into /htdocs/plugins folder and called it
$plugins = array(
new AdminerSqlLog("C:/DnDAMPP/Apache24/htdocs/sql_logs.txt"),
new AdminerLoginSsl(array(
"key"=>"C:/DnDAMPP/mysql/ssl/server-key.pem",
"cert"=>"C:/DnDAMPP/mysql/ssl/server-cert.pem",
"ca"=>"C:/DnDAMPP/mysql/ssl/ca-cert.pem"
)),
); in adminer_object function.
When I attempt to login, nothing happens. From access logs:
"GET /index.php?server=localhost&username=my_new_user&db=my_db HTTP/1.1" 403 2606
"POST /index.php?server=localhost&username=my_new_user&db=my_db HTTP/1.1" 302 -
If I comment AdminerLoginSsl call, I can login with the old user and queries are logged in specified file so function AdminerSqlLog works.
I also tried replacing with:
function __construct(array $ssl)
or using [] instead of array() but didn't make any difference.
Is this a bug or am I doing something wrong? Thank you.
CONCLUSION: I managed to fix it today so the problem was on my end. I am sorry for any inconvinience, you can close this ticket.
Last edit: George Wilson 2019-07-29
For posterity, what was the fix?