I’m working on a project where I should connect my client-app to mongodb with cert.
My client-app uses the mongo-c-driver, after looking in the doc I found this API mongoc_client_pool_set_ssl_opts which seems to be easy to use.
The problem is whenever I pass the path to the .pem (server certificate and CA) (generated with this tutorial) the API return this error mongoc:
Cannot find certificate in 'file_where_cert_is_stored.pem'.
What am I doing wrong so the API can’t find the certificate ?