title: "ERROR 2026 (HY000): SSL connection error" when connecting to MySQL through some networks, but not others
body: <p>When I try to connect to a MySQL server instance via command line, I get the following error:</p>
  
  <pre><code>computer:~ mysql -u user -h db.dbsite.com -p
  Enter password: 
  
  ERROR 2026 (HY000): SSL connection error: error:00000005:lib(0):func(0):DH lib
  </code></pre>
  
  <p>Another user with access tried to reproduce it on their end, but connected successfully. Likewise, I can connect on my own home network. The issue has so far only appeared on a public coffee shop WiFi network. I don't have a strong background in networking some I'm not sure what attributes of the network would cause this issue.</p>
  
  <p>I connect successfully elsewhere, so that rules out some of the other issues on StackOverflow (<a href="https://serverfault.com/questions/353296/mysql-error-2026-hy000-ssl-connection-error?rq=1">incorrect certificate</a> for one, likewise many other issues are related to invalid server SSL config). Skipping ssl as mentioned <a href="https://stackoverflow.com/questions/31413031/mysql-error-2026-hy000-ssl-connection-error-error00000001lib0func0re">here</a> is not viable because of the security risk.</p>
  
  <p>Other info:  </p>
  
  <p>OpenSSL 1.0.2p  14 Aug 2018<br>
  mysql  Ver 8.0.12 for osx10.13 on x86_64 (Homebrew)</p>