Comments - MYSQL_ATTR_SSL_VERIFY_SERVER_CERT=true --> always error SQLSTATE[HY000][2002].

3 years, 8 months ago Michel ADAM

Hello, Finally, the PDO option MYSQL_ATTR_SSL_VERIFY_SERVER_CERT works very well: there was simply a problem of rights on the file containing the certificates of the certification authorities : in other words, my app couldn't read my truststore file so it couldn't validate the certificate ... giving a handshake error and the SQLSTATE[HY000][2002 message. It is not obvious from the error message that this is a problem with the rights of the file. So, the problem is now solved ! Michel

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.