I am using PostgreSQL server for my application. I am trying to implement secure connection using SSL certificate. I modified ssl property to "on" in postgresql.conf. I am generate self-signed certificate and key which is encrypted using the below java code, it uses pbe to encrypt the private key. I am using PostgreSQL server for my application