mendelson AS2 solution – “…Caused by: java.security.UnrecoverableKeyException: Password verification failed”

After mendelson AS2 solution upgrade when you lauch

java -jar start.jar etc/jetty.xml etc/jetty-ssl.xml

from Command Prompt Window (Start -> Run -> cmd) to unable SSL configuration for the Jetty Server show the following lines:


1906 [main] INFO org.mortbay.log – Started SelectChannelConnector@0.0.0.0:8080
1922 [main] WARN org.mortbay.log – failed SslSocketConnector@0.0.0.0:8443: java.
io.IOException: Keystore was tampered with, or password was incorrect
1922 [main] WARN org.mortbay.log – failed Server@16ef71: java.io.IOException: Ke
ystore was tampered with, or password was incorrect
1922 [main] WARN org.mortbay.log – EXCEPTION
java.io.IOException: Keystore was tampered with, or password was incorrect
at sun.security.provider.JavaKeyStore.engineLoad(Unknown Source)
at sun.security.provider.JavaKeyStore$JKS.engineLoad(Unknown Source)
at java.security.KeyStore.load(Unknown Source)
at org.mortbay.jetty.security.SslSocketConnector.createFactory(SslSocket
Connector.java:240)
at org.mortbay.jetty.security.SslSocketConnector.newServerSocket(SslSock
etConnector.java:448)
at org.mortbay.jetty.bio.SocketConnector.open(SocketConnector.java:73)
at org.mortbay.jetty.AbstractConnector.doStart(AbstractConnector.java:28
3)
at org.mortbay.jetty.bio.SocketConnector.doStart(SocketConnector.java:14
7)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at org.mortbay.jetty.Server.doStart(Server.java:235)
at org.mortbay.component.AbstractLifeCycle.start(AbstractLifeCycle.java:
50)
at org.mortbay.xml.XmlConfiguration.main(XmlConfiguration.java:985)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.mortbay.start.Main.invokeMain(Main.java:194)
at org.mortbay.start.Main.start(Main.java:534)
at org.mortbay.start.Main.start(Main.java:441)
at org.mortbay.start.Main.main(Main.java:119)
Caused by: java.security.UnrecoverableKeyException: Password verification failed

… 20 more

Cause:

The passwords stored in
..\mendelson\opensource\as2\jetty\etc\jetty-ssl.xml
are incorrect.

Solution:

Insert the correct passwords or replace the file jetty-ssl.xml from a backup.

Did my solution solve your problem?

mendelson AS2 solution – “[SSLPeerUnverifiedException]: peer not authenticated … Connection problem, failed to transmit data.”

When you send a file to your partner the trasmission fails with the following error message:

[SSLPeerUnverifiedException]: peer not authenticated
Connection problem, failed to transmit data.

If the software is configured properly and you have managed to send files then the problem is software related.

Solution 1:

Download and install the latest version

My experience: with (AS2 1.1 b33) I could send a maximum of 5 consecutive files, I received the error over the fifth file and had to wait 10 minutes until half an hour before I can resubmit the files.

Solution 2:

Update all Expired Certificates in
…\mendelson\opensource\as2\certificates.p12
and in
…\mendelson\opensource\as2\jetty\etc\keystore

I suggest you use
Portecle, a user friendly GUI application for creating, managing and examining keystores, keys, certificates, certificate requests, certificate revocation lists and more.
Portecle can be launched directly with Java Web Start (Java 1.6 or later with Web Start required) from http://portecle.sourceforge.net/
or downloaded from http://sourceforge.net/projects/portecle/
extract the folder, start Command Prompt Window (Start -> Run -> cmd) and execute the following command:

C:\portecle-1.7>java -jar portecle.jar

Did my solution solve your problem?

mendelson AS2 solution – “@MessageHTTPUploader.performUpload: [SocketException]: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)”

@MessageHTTPUploader.performUpload: [SocketException]: java.security.NoSuchAlgorithmException: Error constructing implementation (algorithm: Default, provider: SunJSSE, class: com.sun.net.ssl.internal.ssl.DefaultSSLContextImpl)

You must insert correct keystore password into
File -> Preferences -> Security -> Keystore password (https send)
then restart the program.

Did my solution solve your problem?