You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When attempting to make a connection to a secured Postgres database, client certificates are not being accepted. Failing with a Failed to initialize pool: FATAL: connection requires a valid client certificate error.
The database is hosted in a Heroku Private Space which allows you to generate a Certificate Bundle that contains one of each of the following: postgresql.crt (Client Certificate), postgresql.key (SSL Key) and root.crt (CA Certificate).
The containter was created and the related files were placed in the respective directory in order to be fetched from the POSTGRESQL_CONNECTION_URI.
I am able to tell they are in the correct directory because it will throw a different error Failed to initialize pool: Could not open SSL root certificate file if the root.crt file is not there.
docker-compose up is run after the files are copied as below: docker cp ./postgres/certs/postgresql.crt supertokens-moneyspot-supertokens-1:server.crt docker cp ./postgres/certs/postgresql.keysupertokens-moneyspot-supertokens-1:server.key docker cp ./postgres/certs/root.crt supertokens-moneyspot-supertokens-1:root.crt
I additionally checked the Files tab in docker desktop to verify that the files were in fact there and with content.
As completed through node (npm pg), DBeaver and the Docker PGAdmin4 extension, a successful connection should be able to be made to the secured database
The text was updated successfully, but these errors were encountered:
Describe the bug
When attempting to make a connection to a secured Postgres database, client certificates are not being accepted. Failing with a
Failed to initialize pool: FATAL: connection requires a valid client certificate
error.The database is hosted in a Heroku Private Space which allows you to generate a Certificate Bundle that contains one of each of the following: postgresql.crt (Client Certificate), postgresql.key (SSL Key) and root.crt (CA Certificate).
The containter was created and the related files were placed in the respective directory in order to be fetched from the
POSTGRESQL_CONNECTION_URI
.I am able to tell they are in the correct directory because it will throw a different error
Failed to initialize pool: Could not open SSL root certificate file
if the root.crt file is not there.docker-compose up
is run after the files are copied as below:docker cp ./postgres/certs/postgresql.crt supertokens-moneyspot-supertokens-1:server.crt
docker cp ./postgres/certs/postgresql.keysupertokens-moneyspot-supertokens-1:server.key
docker cp ./postgres/certs/root.crt supertokens-moneyspot-supertokens-1:root.crt
I additionally checked the Files tab in docker desktop to verify that the files were in fact there and with content.
docker-compose.yml
Expected behaviour
As completed through node (npm pg), DBeaver and the Docker PGAdmin4 extension, a successful connection should be able to be made to the secured database
The text was updated successfully, but these errors were encountered: