Skip to content

There is no way to verify whether a certificate matches a public/private key pair #1161

Description

@AlainKnaff
  • Attempting to do JSch.addIdentity() with non-matching private key and certificate appears to succeed (simply ignoring the certificate), and only fails late when attempting to actually connect to a server that needs the certificate.

  • attempting to create a keypair once with the private key and null, and once with null and the certificate leads to the keypair derived from the certificate to return a bogus publicKeyBlob and fingerprint. For the certificate, the fingerprint doesn't match what ssh-keygen -l -f says, whereas it does match for the primary key.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions