Open HiromuHota opened 5 years ago
I had to remove lib/bcprov-jdk14-138.jar
and lib/bcmail-jdk14-138.jar
.
RSA key worked, but Ed25519 did not with the following warning at logs/spoon.log
[org.eclipse.jgit.internal.transport.sshd.CachingKeyPairProvider] java.security.NoSuchAlgorithmException: Unsupported key type (ssh-ed25519) in /home/tomcat/.ssh/id_ed25519
https://bugs.eclipse.org/bugs/show_bug.cgi?id=520927
rely on net.i2p.crypto.eddsa 0.3.0 for ed25519 support
Ed25519 key still not working with an error popup "No more authentication methods available".
Also at logs/spoon.log
WARN [org.eclipse.jgit.internal.transport.sshd.CachingKeyPairProvider] java.security.NoSuchAlgorithmException: Unsupported key type (ssh-ed25519) in /home/tomcat/.ssh/id_ed25519
The reason is that the classloader ParallelWebappClassLoader
cannot find the class for EdDSAKey.
ClassLoader cl = ThreadUtils.resolveDefaultClassLoader(getClass());
supported = ReflectionUtils.isClassAvailable(cl, "net.i2p.crypto.eddsa.EdDSAKey");
Move eddsa-0.3.0.jar to webapps/spoon/WEB-INF/lib/
solved the error and succeeded.
Now is the time to test on Spoon.
On Spoon, eddsa-0.3.0.jar needed to move to lib/.
In summary, in order for Apache MINA sshd to work, I have to
lib/bcprov-jdk14-138.jar
To support Ed25519,
bcprov-jdk15on-1.64.jar
and eddsa-0.3.0.jar
to lib/
bcmail-jdk14-1.51.jar and bcprov-jdk14-1.51.jar at lib/
did not work.
So bcprov-jdk14-1.XX.jar (tested 1.38 thru 1.64) causes an error "InvalidAlgorithmParameterException: parameter object not a ECParameterSpec". bcprov-jdk15on-1.XX.jar (tested 1.51 thru 1.64) worked fine.
Related issue: https://osgeo-org.atlassian.net/browse/GEOS-7642
This PR will fix #35.