AsyncMysqlConnection::getSslCertCn

Returns Common Name attribute of the TLS certificate presented by MySQL server

public function getSslCertCn(): string;

This information can be used while troubleshooting TLS handshake failures happening on connect stage.

Returns

  • string - a string containing Common Name value from the server certificate presented by MySQL.