Closed TheAustinSwamy closed 2 years ago
This is a known issue with the current open source releases but fixed in our hotfix repository. This will be patched to the open-source version at the next applicable merge.
This issue has been fixed in the latest 3.0.6 update.
Getting this exception with bouncy castle 1.69. Probably not supported yet.
java.security.spec.InvalidKeySpecException: encoded key spec not recognized: 'buf' must have length 32 with bouncy castle 1.69 version. The work around is to go back to 1.68.
Here is a simple test case
import com.sshtools.common.publickey.*; import com.sshtools.common.ssh.components.SshKeyPair;
import java.io.IOException; import java.nio.charset.StandardCharsets;
public class TestCase {
}