Hi,
+-From: gokulvsmail <[email protected]> --
|_Date: Mon, 02 Sep 2013 18:17:15 +0530 ______
|
|Am using the jsch lib for my J2ee web application deployed in jboss 5
|GA.while calling the method session.connect() a getting the exception as.
|java.security.InvalidAlgorithmParameterException: Inappropriate
|parameter type
|16:05:55,792 ERROR [STDERR] at
|com.sun.crypto.provider.DHKeyPairGenerator.initialize(DashoA13*..)
|16:05:55,792 ERROR [STDERR] at
|java.security.KeyPairGenerator$Delegate.initialize(KeyPairGenerator.java:627)
|16:05:55,792 ERROR [STDERR] at
|java.security.KeyPairGenerator.initialize(KeyPairGenerator.java:369)
|16:05:55,793 ERROR [STDERR] at com.jcraft.jsch.jce.DH.getE(DH.java:57)
Before instantiating JSch class, execute the following chunk of code
java.security.Provider[] providers =
java.security.Security.getProviders();
for(int i=0; i<providers.length; i++){
System.out.println(providers[i].getName());
}
Do you find "SunJCE" in its output? If so, how about executing the following
line before instantiating JSch class,
java.security.Security.insertProviderAt(
java.security.Security.getProvider("SunJCE"),
1
);
Sincerely,
--
Atsuhiko Yamanaka
JCraft,Inc.
1-14-20 HONCHO AOBA-KU,
SENDAI, MIYAGI 980-0014 Japan.
Tel +81-22-723-2150
+1-415-578-3454
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk
------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users