title: On connecting to MySQL via SSL getting ERROR 2026 (HY000): SSL connection error: protocol version mismatch
body: <p>I am working with MySQL and generated the certificates to use with MySQL to enable SSL.</p>
  
  <p>Here are SSL configs:</p>
  
  <pre><code>mysql&gt; show variables like '%ssl%';
  +---------------+----------------------------+
  | Variable_name | Value                      |
  +---------------+----------------------------+
  | have_openssl  | YES                        |
  | have_ssl      | YES                        |
  | ssl_ca        | /etc/mysql/ca-cert.pem     |
  | ssl_capath    |                            |
  | ssl_cert      | /etc/mysql/server-cert.pem |
  | ssl_cipher    |                            |
  | ssl_key       | /etc/mysql/server-key.pem  |
  +---------------+----------------------------+
  7 rows in set (0.00 sec)
  </code></pre>
  
  <p>It seems to be working fine and looks like I did it well with applying the certificates with the MySQL server.</p>
  
  <p>The problem exists with creating connection to MySQL server via remote host.</p>
  
  <pre><code>mysql -u app1 -p -h 192.168.33.131 --ssl --ssl-capath=&lt;path&gt;/ssl/ --ssl-ca=&lt;path&gt;/ca-cert.pem --ssl-cert=&lt;path&gt;/client-cert.pem --ssl-key=&lt;path&gt;/client-key.pem
  Enter password:
  ERROR 2026 (HY000): SSL connection error: protocol version mismatch
  </code></pre>
  
  <p>Seems to be having some issues with certificates or may be something else.</p>
  
  <p><strong>Environment:</strong></p>
  
  <pre><code>  OS:      Ubuntu 14.04
    MySQL:   5.5.41
    OpenSSL: OpenSSL 1.0.1f 6 Jan 2014
  </code></pre>