bilgehanyildirim
asked on
Java and SSL
Hi,
I received a JAR file from Barclays bank (Java SDK for ARCOT Transfort Merchant Services). Anyway I managed to install the jar file, Netbeans can use the librar etc. etc.
The problem is about SSL.
The jar file comes with 3 PEM files and system uses SSL to connect to barclays. So I assume in one way or other there 3 cert files need to be installed as well.Can someone help me on this?
This is the output when I run the software
init:
deps-jar:
compile:
run:
javax.net.ssl.SSLHandshake Exception: java.security.cert.Certifi cateExcept ion: Untrusted Server Certificate Chain
at com.sun.net.ssl.internal.s sl.Alerts. getSSLExce ption(Aler ts.java:17 4)
at com.sun.net.ssl.internal.s sl.SSLSock etImpl.fat al(SSLSock etImpl.jav a:1520)
at com.sun.net.ssl.internal.s sl.Handsha ker.fatalS E(Handshak er.java:18 2)
at com.sun.net.ssl.internal.s sl.Handsha ker.fatalS E(Handshak er.java:17 6)
at com.sun.net.ssl.internal.s sl.ClientH andshaker. serverCert ificate(Cl ientHandsh aker.java: 975)
at com.sun.net.ssl.internal.s sl.ClientH andshaker. processMes sage(Clien tHandshake r.java:123 )
at com.sun.net.ssl.internal.s sl.Handsha ker.proces sLoop(Hand shaker.jav a:511)
at com.sun.net.ssl.internal.s sl.Handsha ker.proces s_record(H andshaker. java:449)
at com.sun.net.ssl.internal.s sl.SSLSock etImpl.rea dRecord(SS LSocketImp l.java:817 )
at com.sun.net.ssl.internal.s sl.SSLSock etImpl.per formInitia lHandshake (SSLSocket Impl.java: 1029)
at com.sun.net.ssl.internal.s sl.SSLSock etImpl.sta rtHandshak e(SSLSocke tImpl.java :1056)
at com.sun.net.ssl.internal.s sl.SSLSock etImpl.sta rtHandshak e(SSLSocke tImpl.java :1040)
at com.arcot.comm.SSLTranspor t.connect( com/arcot/ comm/SSLTr ansport.ja va:225)
at com.arcot.xfms.XFMSClient. receiveRes ponse(com/ arcot/xfms /XFMSClien t.java:133 0)
at com.arcot.xfms.XFMSClient. checkIfAut hPossible( com/arcot/ xfms/XFMSC lient.java :122)
at javaapplication13.Main.mai n(Main.jav a:45)
Caused by: java.security.cert.Certifi cateExcept ion: Untrusted Server Certificate Chain
at com.sun.net.ssl.X509TrustM anagerJava xWrapper.c heckServer Trusted(SS LSecurity. java:600)
XFMSFactory.checkIfAuthPos sible failed.
Error num: 9006
Error msg: Unable to connect to MS: Connect failed to www.vbv2bmshost.co.uk:9707 'com.arcot.comm.TransportE xception: Unable to connect to the server or IO error occurs.'
at com.sun.net.ssl.internal.s sl.ClientH andshaker. serverCert ificate(Cl ientHandsh aker.java: 967)
... 11 more
BUILD SUCCESSFUL (total time: 5 seconds)
I received a JAR file from Barclays bank (Java SDK for ARCOT Transfort Merchant Services). Anyway I managed to install the jar file, Netbeans can use the librar etc. etc.
The problem is about SSL.
The jar file comes with 3 PEM files and system uses SSL to connect to barclays. So I assume in one way or other there 3 cert files need to be installed as well.Can someone help me on this?
This is the output when I run the software
init:
deps-jar:
compile:
run:
javax.net.ssl.SSLHandshake
at com.sun.net.ssl.internal.s
at com.sun.net.ssl.internal.s
at com.sun.net.ssl.internal.s
at com.sun.net.ssl.internal.s
at com.sun.net.ssl.internal.s
at com.sun.net.ssl.internal.s
at com.sun.net.ssl.internal.s
at com.sun.net.ssl.internal.s
at com.sun.net.ssl.internal.s
at com.sun.net.ssl.internal.s
at com.sun.net.ssl.internal.s
at com.sun.net.ssl.internal.s
at com.arcot.comm.SSLTranspor
at com.arcot.xfms.XFMSClient.
at com.arcot.xfms.XFMSClient.
at javaapplication13.Main.mai
Caused by: java.security.cert.Certifi
at com.sun.net.ssl.X509TrustM
XFMSFactory.checkIfAuthPos
Error num: 9006
Error msg: Unable to connect to MS: Connect failed to www.vbv2bmshost.co.uk:9707 'com.arcot.comm.TransportE
at com.sun.net.ssl.internal.s
... 11 more
BUILD SUCCESSFUL (total time: 5 seconds)
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
:-)
The URL in the accepted shortcut no longer works
ASKER
I forgot to mention that I am a beginnner :)
The url you sent is showing (I think) how to configure the web server. I am trying to run this app on the local comp with netbeans. no web server is being used at the moment.