In Heroku, I have a PostgreSQL DB with all the credential to be accessed by outside (Host, Port, Database name, User, Password, URI). Then I connected pgAdmin with this database using the above credentials. Finally, I created a PostGIS extension for this database and I added a .shp file through the PostGIS Import/Export tool.
Now, I am trying to access this database as GeoServer Vector Data Source. When I enter all the db parameters (e.g Host, port and so on) in the "Connection Parameters" section I get an error:
Error creating data store, check the parameters. Error message: Unable to obtain connection: Cannot create PoolableConnectionFactory (FATAL: no pg_hba.conf entry for host "130.233.84.159", user "myuser", database "dbname", SSL off)
How can I solve this issue? Any hints?