How to import an SSL certificate
Posted in 2010
Hi All, I am using Spring+JPA+Hibernate and I need to import ssl certificate into the spring's applicationContext.xml in order to connect to the Informix Database Server. Any Idea how to achieve this? Here is the code in applicationContext.xml: <bean id="entityManagerFactory" class="org.springframework.orm.jpa.LocalContainerEntityManagerFactoryBean"> <property name="dataSource" ref="dataSource" /> <property name="jpaVendorAdapter"> <bean class="org.springframework.orm.jpa.vendor.HibernateJpaVendorAdapter"> <property name="database" value="INFORMIX" /> <property name="showSql" value="true" /> </bean> </property> </bean> <bean id="dataSource" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"> <property name="driverClassName" value="com.informix.jdbc.IfxDriver" /> <property name="url" value="jdbc:informix-sqli://HOST_NAME:PORT/DB_Name:INFORMIXSERVER=Server_Name;DE LIMIDENT=y;" /> <property name="username" value="username" /> <property name="password" value="password" /> <property name="minIdle" value="2" /> </bean>