Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

"RSA premaster secret error" when connecting to RTC

I am trying to connect to a RTC repository programmatically (using a snippet of the plain Java Libraries).
When I execute Snippet1 I get this error:

Jun 27, 2012 4:37:55 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: I/O exception (javax.net.ssl.SSLKeyException) caught when processing request: RSA premaster secret error
Jun 27, 2012 4:37:55 PM org.apache.commons.httpclient.HttpMethodDirector executeWithRetry
INFO: Retrying request
Unable to login: CRJAZ0099I When accessing the URL "https://<hostname>:9443/jts/versionCompatibility?clientVersion=3.0.1" the following HTTP error occurred: "RSA premaster secret error"

It looks like a SSL authentication error, but I couldn't determine its cause.
RTC version is 3.0.1.1, RTC is deployed on Tomcat, OS is Windows Server 2003 SE SP1
Any suggestion?

1

0 votes

Comments

Did u find any solution for it.I am facing the same problem its exact same exception and using http apache client 3.x

Please let me know the solution for it Thanks in advance!!

Sorry, no news.

Same problem; just got it today.   In googling about, I suspect it has something to do with the crypto libraries that are picked up when you set -Djava.ext.dirs.   My perl module (written over the summer) DOES connect so the client-side perl SSL libs (written in C not Java) are OK and this means the server is working too.




Accepted answer

Permanent link
Confirmed -- the java.ext.dirs instruction is goofing up the way the crypto libs are pulled in.    If you use good ol' fashioned CLASSPATH it works.   Put all those libs in a big CLASSPATH variable and run it, i.e.

CLASSPATH=\
apache-mime4j-0.6.jar:\
com.ibm.icu_4.0.1.v20090822.jar:\
com.ibm.rational.wvcm.ct_3.0.4.v20120314_0638.jar:\
com.ibm.rational.wvcm.factory_3.0.2.v20110831_0247.jar:\
com.ibm.rational.wvcm.interop_3.0.3.v20120314_0638.jar:\
...
snippets:.
java -classpath $CLASSPATH snippets.Snippet1

Luca Martinucci selected this answer as the correct answer

3 votes

Comments

BTW:
java version "1.6.0_22"
OpenJDK Runtime Environment (IcedTea6 1.10.6) (6b22-1.10.6-0ubuntu1)
OpenJDK 64-Bit Server VM (build 20.0-b11, mixed mode)

For clarity:   If you carefully order the args to java.ext.dir it will work.   For starters, ensure the default VM ext dirs are first and the CLM lib dir is LAST.

But truly, this is not the true purpose of java.ext.dir.   There are 69 jars in CLM lib and although I can appreciate why putting 69 libs in the CLASSPATH is a drag, it nonetheless is The Proper Way to declare app-level libs to the VM.   I would suggest that IBM jarjar the thing into a substantially smaller set of symbol-isolated jars.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,019

Question asked: Jun 27 '12, 10:43 a.m.

Question was seen: 8,932 times

Last updated: Dec 06 '12, 12:45 p.m.

Confirmation Cancel Confirm