Hi,

   +-From: Mark Manes <mma...@stillsecure.com> --
   |_Date: Tue, 15 May 2012 16:49:55 -0400 ______
   |
   |I'm attempting to run Jsch as a client while using the SunPKCS11 NSS JCE
   |in FIPS mode.  As soon as I attempt to connect, I get an exception:

   |java.security.ProviderException: Could not derive key
   | at 
sun.security.pkcs11.P11KeyAgreement.engineGenerateSecret(P11KeyAgreement.java:204)
   | at javax.crypto.KeyAgreement.generateSecret(KeyAgreement.java:570)
   | at com.jcraft.jsch.jce.DH.getK(DH.java:73)
   ...

If the provider "SunJCE" is available on your environment,
how about executing the following line at the beginning of your code?

  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
Skype callto://jcraft/
Twitter: http://twitter.com/ymnk
Facebook: http://facebook.com/aymnk

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
JSch-users mailing list
JSch-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jsch-users

Reply via email to