It fails with a message saying: java.lang.ClassNotFoundException: com.sshtools.common.publickey.OpenSSHPrivateKeyFileBC
I have included the com.sshtools:maverick-bc library in my imports.
Looking at the code, it looks like the tryBc method on line 176 of the SshPrivateKeyFileFactory is looking for a class named:
"com.sshtools.common.publickey.OpenSSHPrivateKeyFileBC"
but the maverick-bc class is at:
"com.sshtools.common.publickey.bc.OpenSSHPrivateKeyFileBC"
The missing "bc" in the package path seems to be the problem.
I am using v3.0.3-FINAL and its SshPrivateKeyFileFactory to extract a private key from a key pair like so:
It fails with a message saying:
java.lang.ClassNotFoundException: com.sshtools.common.publickey.OpenSSHPrivateKeyFileBC
I have included the
com.sshtools:maverick-bc
library in my imports.Looking at the code, it looks like the
tryBc
method on line 176 of the SshPrivateKeyFileFactory is looking for a class named: "com.sshtools.common.publickey.OpenSSHPrivateKeyFileBC" but the maverick-bc class is at: "com.sshtools.common.publickey.bc.OpenSSHPrivateKeyFileBC"The missing "bc" in the package path seems to be the problem.