ConnectionDB with SSL connection in Pimcore

I the SSL certificates now need to connect DB with my instance through SSL connection.

In app/config/config.yml

doctrine:
dbal:
default_connection: default
connections:
default:
driver: pdo_mysql
server_version: ‘5.7’
host: ‘%database_host_default%’
#port: ‘%database_port_default%’
dbname: ‘%database_name_default%’
user: ‘%database_user_default%’
password: ‘%database_password_default%’
options:
!php/const:PDO::MYSQL_ATTR_SSL_KEY: %database_ssl_key_default%
!php/const:PDO::MYSQL_ATTR_SSL_CERT: %database_ssl_cert_default%
!php/const:PDO::MYSQL_ATTR_SSL_CA: %database_ssl_ca_default%

orm:
entity_managers:
default:
connection: default

In app/config/parameters.yml

database_host_default: 192.168.9.222
database_port_default: 3306
database_name_default: pimcore_pepsico
database_user_default: remote_user1
database_password_default: Root!123
database_ssl_key_default: ~/client-ssl/client-key.pem
database_ssl_cert_default: ~/client-ssl/client-cert.pem
database_ssl_ca_default: ~/client-ssl/ca.pem

Now I try to access my instance I am getting error:

An exception occurred in driver: SQLSTATE[HY000] [2002]

also,

PDOException

failed loading cafile stream: `~/client-ssl/ca.pem’