We don't issue certififcate for localhost, and mysqlclient acts as
a localhost connection while connecting thorugh socket as well.
While issuing cert for localhost may lead to unpredictable results
we just avoid verifying certificate when connecting locally.
Change-Id: I556ae69c33ab9cc984d7c01868403be49faa0dbc
(cherry picked from commit f3364da0865ee563abbe6b7462f3a06aa4bd4922)