How to import certificates for monitoring Postgres Server with SSL authentication?

How to import certificates for monitoring Postgres Server with SSL authentication?

Error Message:
The connection attempt failed!

Reason: This error occurs when you are trying to add an SSL enabled server but the certificates which are used for SSL connection are not present in the cacerts.

Solution:
      To import certificates, follow the steps given below:
  1. Go to Admin--> Tools--> Manage Certificates.
  2. Click on the "Trust Certificates" tab. Here you have 3 options to import certificates into trusted sources.
    1. Choose the certificate option --> choose monitor type as (cacerts) and directly upload certificates as files.
      1. Choose the necessary file. 
      2. On clicking Import, it will be added to Applications Manager's trust store.


Note:
  1. If you are using CA certified certificate import server certificate only.
  2. If you are using self-signed certificate import server certificate as well as its root certificate.