Module x509

Source
Expand description

Contains some helper functions for pulling SSH public keys from x509 certificates and CSRs. Is enabled whenever yubikey_support is enabled because some functionality is currently shared.

Functionsยง

der_encoding_to_ssh_public_key
Helper function to convert a DER encoded public key, into an SSH formatted public key that can be used with the rest of the SSHCerts library. This function only supports NISTP256 and NISTP384 Ecdsa keys
extract_ssh_pubkey_from_x509_certificate
This function is used to extract an SSH public key from an x509 certificate
extract_ssh_pubkey_from_x509_csr
This function is used to extract an SSH public key from an x509 certificate signing request