Skip to content

bugfix: fix cert auth failed bug#660

Merged
tomaswolf merged 1 commit into
apache:masterfrom
liuziyu1226:feature/cert-auth
Feb 27, 2025
Merged

bugfix: fix cert auth failed bug#660
tomaswolf merged 1 commit into
apache:masterfrom
liuziyu1226:feature/cert-auth

Conversation

@liuziyu1226
Copy link
Copy Markdown

@liuziyu1226 liuziyu1226 commented Jan 31, 2025

Fixes #650

Comment thread sshd-core/src/main/java/org/apache/sshd/server/auth/pubkey/UserAuthPublicKey.java Outdated
@liuziyu1226 liuziyu1226 force-pushed the feature/cert-auth branch 2 times, most recently from e18687b to 0bfda76 Compare February 2, 2025 00:35
@tomaswolf
Copy link
Copy Markdown
Member

Thanks for this contribution. We're about to create a new Apache MINA sshd 2.15.0 release. I will defer merging this until after that (so it will be in 2.16.0 then). The problem is that the server side of certificate authentication has many other things missing. As far as I can see the server side doesn't even check the signature in the certificate.

Use the certified key to check the signature in server-side pubkey
auth. Previous code failed because it mistakenly used the certificate
itself, which didn't work because the signer doesn't know about
certificates.

(In other words: until this fix, pubkey auth at an Apache MINA sshd
server always failed with user certificates.)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Supplied key (org.apache.sshd.common.config.keys.OpenSshCertificateImpl) is not a RSAPublicKey instance

2 participants