How to check if a SSH server public key is signed by a Certificate Authority (CA)?
Jun 2, 4:15pm
To check if an SSH server's public key is signed by a Certificate Authority (CA), you need to verify the SSH host certificate associated with the key. SSH certificates are used to authenticate hosts (or users) and are signed by a CA, similar to how TLS/SSL certificates work.
Here’s how you can verify if an SSH server’s public key is signed by a CA:
1. Retrieve the SSH Server’s Public Key and Certificate
When connecting to an SSH server, the server may present:
A public key (e.g., ssh-rsa, ecdsa-sha2-nistp256, etc.)
A host certificate (e.g., ssh-rsa-cert-v01@openssh.com)
If the server uses a CA-signed certificate, the public key will be embedded in the certificate.
Check the Server’s Host Key and Certificate
Run the following command to fetch the server’s host keys and certificates: