Skip to main content

Python library for interacting with OpenSSH Certificates

Project description

ssh_certificate_parser is a small library for interacting with OpenSSH host/user certificates. Specifically, it supports RSA, DSA, and Ed25519 keys signed by an RSA certificate authority. It does not currently validate the CA signature, but merely parses out some fields.

CI Documentation Status

This work is licensed under the ISC license, a copy of which can be found at LICENSE.txt

Usage

This module contains a single class, SSHCertificate. You can construct it with the .from_bytes or .from_file classmethods.

from ssh_certificate_parser import SSHCertificate

cert = SSHCertificate.from_file('/etc/ssh/ssh_host_rsa_key-cert.pub')

remaining_seconds_of_validity = cert.remaining_validity

Full documentation is at https://ssh-certificate-parser.readthedocs.io/en/latest/.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ssh_certificate_parser-1.3.1.tar.gz (5.5 kB view hashes)

Uploaded Source

Built Distribution

ssh_certificate_parser-1.3.1-py3-none-any.whl (5.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page