I am trying to connect pgAdmin to digitalOcean. However I am getting this error:

I add the certificate but digital ocean didn't provided me a key file. Where could I find it?
This Is how I add the certificate file.
Thank you,
Jonathan Prieto
You need to create this private key with openssl command.
Unfortunately client certificate setup is not documented in the PostgreSQL official documentation.
The best documentation that I have found is the following: https://info.crunchydata.com/blog/ssl-certificate-authentication-postgresql-docker-containers.
You should try to adapt "Step 4: Generating the Client Key and Certificate" to your configuration.