Using certificates for SSH authentication
Using certificates for SSH authentication
Posted Nov 15, 2022 16:46 UTC (Tue) by anton (subscriber, #25547)In reply to: Using certificates for SSH authentication by tilt12345678
Parent article: Using certificates for SSH authentication
“An SSH public key does not specify which host or user it belongs to, for example, whereas a certificate has a list of "principals" that it vouches for. A principal is a host or user name.”Apparently neither do the OpenSSH maintainers. I have old user public keys that contain username@hostname (which is helpful when weeding out authorized_keys files), and old entries in known_hosts files that contain the FQDN and IP of the host. That's gone or (for known_hosts) encrypted in newer public keys and known_hosts entries.I fail to find this disclosure desirable.
Makes me wonder if the reasons why they were eliminated also hold for certificates. I guess that in the presence of certificate servers one would need to encrypt the public keys in the files, otherwise one could recreate the information that were intentionally left away from these files by looking the public keys up in a certificate server.
