Enable verify-ca for PostGIS DataStore

GeoServer Version: 2.25.1
Git Revision: 36fe72f3d8c0335330acada14bf31eeee47743cc
Build Date: 23-May-2024 01:03
GeoTools Version: 31.1 (rev c8a398e0554f29b55276892cbe4025f68fb4aaea)
GeoWebCache Version: 1.25.1 (rev 1.25.x/114fc8788ff55e6be4edbdd57fd4f5e56058b61f)

We are trying to create a PostGIS Store in our GeoServer implementation. However, GeoServer needs to connect to our PostGIS Database remotely. For this we would like to implement SSL mode:verify-ca. But the attempt to create a store with SSL mode:verify-ca always ends in an error. We have tried to install the JDBCStore module using the provided JAR file to see if there are additional options there, but could not find any reference to SSL modes. Are we missing something for SSLModes?

JDBCStrore: Installing JDBCStore — GeoServer 2.27.x User Manual

We also added our .pem key (since we have a self-signed certificate) to our JVM’s /etc/pki/cacerts list using the keytool utility. But the option to add verify-ca always ends in an error, atleast from the Admin Web Interface.

Any help regarding this would be greatly appreciated.

Thanks!