Hi,

   +-From: Scott Spyrison <[email protected]> --
   |_Date: Fri, 6 Aug 2010 16:00:12 -0500 _____
   |
   |3) Under JDK 5, with bouncycastle provider at position 1 or 2, nothing
   |works.  java.security.InvalidKeyException: Public key presented not
   |for certificate signature.  (exception below)

According to the bug report[1], Java5 and previous must not
allow to insert providers at 1.

   |4) Under JDK 5, with bouncycastle provider at position 3 or greater,
   |it works but the intermittent symptoms return.

How about adding an argument "BC" to getInstance method invocations in
com.jcraft.jsch.jce.DH class?  I mean that

  myKpairGen=KeyPairGenerator.getInstance("DH", "BC");
  myKeyAgree=KeyAgreement.getInstance("DH", "BC");


[1] http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4653099


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/

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
JSch-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to