Is it possible to connect PHP PDO to remote MySQL with SSL but without client certificate

143
February 22, 2019, at 07:20 AM

If i understand this correctly remote MySQL server has server certificate to authenticate to a client and encrypt the connection. And client can have client certificate to authenticate to the server, but if i do not need to authenticate client to the server, because i only need encryption, can i omit client certificate when crating PDO connection.

And what is the syntax for that, for example $con = new PDO('mysql:host=someHost;dbname=someDB;port=3306',$user,$pass);
Where to specify that i want SSL but without client certificate

READ ALSO
Refactoring nested for…in statements

Refactoring nested for…in statements

I have an array with the following structure:

185
how to parse a huge JSON file without loading it in memory

how to parse a huge JSON file without loading it in memory

I have a large JSON file (25MB) containing about 80000 lines

242
How to spy the function returning value inside another function in jasmine

How to spy the function returning value inside another function in jasmine

While writing test cases, I want to get the isChange value as true always (ignoring if condition) and how to call the statusModule in specs file in jasmine? I tried spyOn but no luck

154
How do I use node-argon2 on a platform like GCP?

How do I use node-argon2 on a platform like GCP?

For a Nodejs app, in order to use the node-argon2 package, the node-gyp package must be globally installed on the system first as well as a c/c++ compiler to build the Argon2 source

132