Check if MySQL server has ssl enabled without logging in -


is possible check if mysql server has ssl connections enabled without logging in, assuming have port , ip?

theoretically possible that, requires understanding of mysql's own protocol , advanced socket programming.

as part of initial handshake process, mysql server sends initial handshake packet. part of capability flags mysql server sets client_ssl flag if supports ssl:

the ssl support announced in initial handshake packet sent server via client_ssl , enabled if client returns same capability.

this packet sent before authentication, not have authenticate determine if mysql server support ssl. however, in various mysql apis cannot ask initial handshake packet sent. in c api have mysql_real_connect() connect server immediately. so, need write own code initiate connection mysql server, process server's initial handshake packet, determine if supports ssl , close connection.


Comments

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -