php 5.x 7.x, ssl pdo error: Peer certificate CN=`someName' did not match expected CN='someIP'
We have a server with mysql on port 3306. We have sertifications and key and we try to connect to this server. But we see such problem: Peer certificate CN='SomeName' did not match expected CN='someIP' I've read a lot of articles and can't find answer for PDO PHP. The most interesting is that the SQLYog could connect with all settings. I've read that I verify_peer_names can be disabled (I hope I understand what is peer_names...), but only if we use openssl_{functions} or mysqli, not PDO. Both options are not appropriate for me. I need PDO. What I tried to do: switch between versions of php. It