Link to home
Start Free TrialLog in
Avatar of bilgehanyildirim
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.SSLHandshakeException: java.security.cert.CertificateException: Untrusted Server Certificate Chain
        at com.sun.net.ssl.internal.ssl.Alerts.getSSLException(Alerts.java:174)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1520)
        at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:182)
        at com.sun.net.ssl.internal.ssl.Handshaker.fatalSE(Handshaker.java:176)
        at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:975)
        at com.sun.net.ssl.internal.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:123)
        at com.sun.net.ssl.internal.ssl.Handshaker.processLoop(Handshaker.java:511)
        at com.sun.net.ssl.internal.ssl.Handshaker.process_record(Handshaker.java:449)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:817)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1029)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1056)
        at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1040)
        at com.arcot.comm.SSLTransport.connect(com/arcot/comm/SSLTransport.java:225)
        at com.arcot.xfms.XFMSClient.receiveResponse(com/arcot/xfms/XFMSClient.java:1330)
        at com.arcot.xfms.XFMSClient.checkIfAuthPossible(com/arcot/xfms/XFMSClient.java:122)
        at javaapplication13.Main.main(Main.java:45)
Caused by: java.security.cert.CertificateException: Untrusted Server Certificate Chain
        at com.sun.net.ssl.X509TrustManagerJavaxWrapper.checkServerTrusted(SSLSecurity.java:600)
XFMSFactory.checkIfAuthPossible failed.
Error num: 9006
Error msg: Unable to connect to MS: Connect failed to www.vbv2bmshost.co.uk:9707 'com.arcot.comm.TransportException: Unable to connect to the server or IO error occurs.'
        at com.sun.net.ssl.internal.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:967)
        ... 11 more
BUILD SUCCESSFUL (total time: 5 seconds)
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of bilgehanyildirim
bilgehanyildirim

ASKER

Hi Cehj,
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.
:-)
The URL in the accepted shortcut no longer works