Skip to content
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

Configure SSH Host Certificates #6785

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

frenchie
Copy link

@frenchie frenchie commented Aug 27, 2023

Allows HostCertificates to be defined via the web interface (Settings > System > Administration > Show cryptographic overrides) which are then dynamically deployed at runtime.

Note minimal checking is required on these entries as OpenSSH fails safe in all of the likely failure modes

  • If the certificates do not match the key they are ignored with a warning in the log
  • Any HostKeys without a matching certificate function as per normal
  • Any non-key data present in these files is simply ignored by the daemon.
  • SSH matches certificates to keys by fingerprint, the menu names are more to give sane filenames on disk

Does not currently set up TrustedUserCAKeys as this can already be achieved simply by adding the CA certificate to the authorized_keys file with the option cert-authority.

fixes #6007

frenchie and others added 2 commits August 27, 2023 15:27
Allows HostCertificates to be defined via web
Any undefined Certificates will be removed
Any Certificates found will be added to the SSH config at runtime
Whitespace correction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Add support for SSH Certificates
2 participants