Skip to content

certificate authentication failing with sshd: error: Certificate does not contain an authorized principal #1991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
3 tasks done
leocoolmitra opened this issue Sep 24, 2022 · 1 comment

Comments

@leocoolmitra
Copy link

Prerequisites

  • Write a descriptive title.
  • Make sure you are able to repro it on the latest version
  • Search the existing issues.

Steps to reproduce

I am trying to setup certifiate authentication in my test lab and after setting it up when i try to SSH i get this error
sshd: error: Certificate does not contain an authorized principal

I have signed my user certificate with principal [email protected] and in my authorized_principles file under programdata\ssh i have contoso.local\user1.
I have also tried using [email protected] and user but still the same error.

Expected behavior

should let me ssh in from client to server without password

Actual behavior

fails with error.

Error details

sshd: error: Certificate does not contain an authorized principal

Environment data

server win 2022 = OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2
client windows 10 OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2

Version

OpenSSH_for_Windows_8.1p1

Visuals

No response

@tgauth
Copy link
Collaborator

tgauth commented Sep 26, 2022

Please see #1055 (comment)

@tgauth tgauth closed this as completed Sep 26, 2022
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

No branches or pull requests

3 participants
@tgauth @leocoolmitra and others