Hello everyone!
I have an issue and this is killing me, I ma writing this in order to fina a solution.
My old architecture everything was working fine:
- we have some data in a JDBC that is accesible from a specific subnet
- we extract data with cloud functions and write them in BigQuery
My new setup:
- same database but with extra security and I have to use a certificate in order to connect
- I have added some parameters to my connections string useSSL=true&requireSSL=true&verifyServerCertificate=true&serverTimezone=UTC&trustCertificateKeyStoreUrl=file:/extra_files/ca-root.pem
- exactly the same setup for the rest of the function
The error I get and I just can’t get around it: java.sql.SQLException: Cannot create PoolableConnectionFactory (Cannot open file:/extra_files/ca-root.pem [/extra_files/ca-root.pem (No such file or directory)]
From this https://cloud.google.com/dataflow/docs/guides/templates/ssl-certificates it is that simple but my setup is just a little more complicate