JDBC ENCCSM problem
Posted in 2019
Hi,
I have a problem with JDBC and ENCCSM (only with aes(xxx).
First i explain my environment:
Informix server:
* IBM Informix Dynamic Server Version 14.10.FC1 (linux) (Test server)
* concsm.cfg:
net_sec("/aplicacions/informix/lib/csm/iencs11a.so", "cipher[aes256:cbc],
mac[levels:<high>,files:</aplicacions/informix/etc/keyData0.dat,/aplicacions/inf
ormix/etc/keyData1.dat>], switch[cipher:30,key:10]")
Informix Client:
* IBM Informix JDBC Driver Version 4.10.JC7DE
* java version "1.8.0_161"
Java(TM) SE Runtime Environment (build 1.8.0_161-b12)
Java HotSpot(TM) 64-Bit Server VM (build 25.161-b12, mixed mode)
* Cipher : aes256
* URL: String dataUrl = "jdbc:informix-sqli://<my_server>:<my port>/<my
database>:INFORMIXSERVER=<my informix
server>;csm=(classname=com.informix.jdbc.Crypto,cipher[aes256:cbc],mac[levels:<h
igh>,files:<keyData0.dat,keyData1.dat>],switch[cipher:30,key:10]);SQLIDEBUG=trac
e";
Result at client side:
* FAILED: Failed to connect java.sql.SQLException:
com.informix.csm.IfxCsmException: Unknown cipher/mode requested
Result at server side:
07/12/19 11:04:19 file cssstubs.c, line 762, session 68, thread 87, CSM-VP bad
call argument.
07/12/19 11:04:19 listener-thread@soc_be.c:3130: err = -14565: oserr = 0:
errstr = : CSS: error reading data.
07/12/19 11:04:19 listener-thread@soc_be.c:3411: err = -25582: oserr = 0:
errstr = : Network connection is broken.
This woks fine with dbaccess (client and server are the same machine) and
with informix CSDK 4.10 (windows) (aes256)
When I change cipher from aes256 to bf3 the communication from jdbc to server
worke fine. Only fails with aes(xxx)
Thanks,