hierynomus / sshj

ssh, scp and sftp for java
Apache License 2.0
2.46k stars 594 forks source link

No initialization of public key depending on constructor usage of file key provider #907

Closed dkocher closed 2 months ago

dkocher commented 8 months ago

We had an issue ^1 that we failed to initialize the public key required for connections using certificates for authentication. This is caused by the implementation of OpenSSHKeyV1KeyFile and OpenSSHKeyFile requiring to use a particular constructor to make sure an attempt is made to initialize the public key ^2 .