Quick Fix j (QFJ) SSL connection to a server fails: certificate_required using jks, csr and crt

248 Views Asked by At

will appreciate you a help with a SSL problem that I have. I am using quick fix j version 2.3.1 as initiator. I am trying to connect to a server that is using SSL

I generated two files using keytool one is .jks and the other is .csr using the commends respectively:

keytool -genkey -alias ALIAS -keyalg RSA -keystore JKSNAME.jks -validity 365 -keysize 2048

keytool -certreq -alias ALIAS -keystore JKSNAME.jks -file CSRNAME.csr

I then sent the .csr file to the acceptor side and they send back a .crt file, I used this .crt file to generate a new .jks file using commend:

keytool -import -alias testalias -file CRTNAME.crt -keypass keypass -keystore JKSNAME2.jks 

and populate the results in:

SocketUseSSL=Y
SocketKeyStore=JKSNAME2.jks 
SocketKeyStorePassword=****

but after all this I am unable to connect to the acceptor, getting output:

javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_required 

and

java.net.SocketException: Connection reset

Will appreciate any help with this

0

There are 0 best solutions below