mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Josh Clum <joshc...@gmail.com>
Subject Bouncy Castle
Date Wed, 09 Apr 2014 19:06:41 GMT

When trying to use the default SSHServer (sshd =
SshServer.setUpDefaultServer();) I ran into an issue where the default
Ciphers weren't loading correctly. I get this exception:

Exception in thread "main" java.lang.SecurityException: JCE cannot
authenticate the provider BC
at javax.crypto.Cipher.getInstance(DashoA13*..)
at javax.crypto.Cipher.getInstance(DashoA13*..)
at org.apache.hadoop.gateway.ssh.Test.main(Test.java:15)
Caused by: java.util.jar.JarException: Cannot parse
at javax.crypto.SunJCE_c.a(DashoA13*..)
at javax.crypto.SunJCE_b.b(DashoA13*..)
at javax.crypto.SunJCE_b.a(DashoA13*..)
... 3 more

It looks like it's having trouble with the signatures when trying to load
the bouncy castle jars from apacheds-all.

My temporary workaround was to disable bouncy castle right before setting
up the default server (SecurityUtils.setRegisterBouncyCastle(false);). Is
there any way I could make this work without disabling bouncy castle?


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message