Encryption JDBC/Connection Pooling and Tomcat
Hello,
I'm trying to set up a secure thin-jdbc connection from Tomcat 4.0.6 to an Oracle 9i database. If I configure the database to require encryption(sqlnet.ora) without any changes on the client(Tomcat) side, the trafic is encrypted. The problem is, that I have to configure the client to require the encryption, and the database to accept unencrypted connections too.
The Oracle JDBC-Guide tells me to use a properties file to pass the parameters(oracle.net.encryption_client, ..). But how can I do this when I'm using JNDI?
In my tomcat server.xml I tryied to insert
<Resource name="jdbc/clix" auth="Container"
.
.
<ResourceParams name="jdbc/clix">
.
.
. <parameter>
<name>oracle.net.encryption_client</name>
<value>REQUIRED</value>
</parameter>
<parameter>
<name>oracle.net.encryption_types_client</name>
If I use this configuration, trafic is not encrypted. Does anyone have an idea or know documentation about how to do this?
Best regards, Peter