venkates
5 years agoNew Contributor
Connecting to postgres Cloud DB with SSL enabled
Hello All
I am planning to store my test results in postgres Cloud DB. Cloud DB accepts connection only with SSL enabled.
I have tried below configuration . Same configuration works fine with plain java program but not with groovy.
Any suggestions ?
Map batchDBConnParams = [
ssl: 'true',
sslmode: 'verify-ca',
sslrootcert: 'D:\\venkat\\automation\\postgres\\pg_badge.cert',
user:'XXXXXX',
password:'XXXXX',
url:'jdbc:postgresql://cloudURL:32681/DB_name',
driver: 'org.postgresql.Driver',
sslfactory:'org.postgresql.ssl.NonValidatingFactory' // This i have added based on some other topic suggestion .
]
If that is the case, then open a ticket SmartBear customer care.
Mean while use previous version which is working for you.