Using the PostgreSQL CA certificate for SSL connection, the verification fails

If the PostgreSQL CA certificate is a self-signed certificate, you will need to install the certificate on the client machine to make Windows trust the certificate.