dmaheshwarareddy Posted February 15, 2017 Share Posted February 15, 2017 Environment : Jasper Server 6.3Data Base: PostgresSQL 9.6Question: Enable SSL for JNDI Data sourceCurrently I am facing issue when i add SSL enable parameter for my JNDI connection URL./META-INF/Context.xml<Resource name="jdbc/XXXX" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" username="XXXXX" password="XXXXX" driverClassName="org.postgresql.Driver" accessToUnderlyingConnectionAllowed="true" validationQuery="SELECT 1" testOnBorrow="true" url="jdbc:postgresql://localhost:5432/databse1?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory" factory="com.jaspersoft.jasperserver.tomcat.jndi.JSCommonsBasicDataSourceFactory"/>Please suggest the way to enable SSL in JNDI data source.Thanks,Mahesh Link to comment Share on other sites More sharing options...
bgilmore Posted August 3, 2017 Share Posted August 3, 2017 I was able to get this working by changing :url="jdbc:postgresql://localhost:5432/databse1?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory" tourl="jdbc:postgresql://localhost:5432/databse1?ssl=true&sslfactory=org.postgresql.ssl.NonValidatingFactory" Here's the connection log from Postgres showing SSL traffic.2017-08-03 11:26:16 CDT LOG: connection authorized: user=jasperdb database=jasperserver SSL enabled (protocol=TLSv1.2, cipher=ECDHE-RSA-AES128-GCM-SHA256, compression=off) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now