I\'ve been searching all over the internet and haven\'t had any success.
eg: https://laravel.io/forum/06-18-2014-connecting-mysql-over-ssl?page=1 https://laracasts
You need to provide the full path to the files. If they're in your laravel application folder then you can use the base_path
method to generate the full poth. You may also need to define the cert and ca.
'options' => [
PDO::MYSQL_ATTR_SSL_KEY => base_path('ssl/client-key.pem'),
PDO::MYSQL_ATTR_SSL_CERT => base_path('ssl/client-cert.pem'),
PDO::MYSQL_ATTR_SSL_CA => base_path('ssl/ca-cert.pem')
]