Skip to main content

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/.

Development

# Install dependencies
make install

# Lint project
make lint

# Test project
make test
make coverage

Metadata

Release files for ssh-certificate-parser 1.6.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ssh-certificate-parser 1.6.0
File Size Uploaded Provenance
ssh_certificate_parser-1.6.0.tar.gz 7.0 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ssh-certificate-parser 1.6.0
File Interpreter ABI Platform
ssh_certificate_parser-1.6.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.1 kB

Release files / ssh_certificate_parser-1.6.0.tar.gz

Download URL ssh_certificate_parser-1.6.0.tar.gz
Size 7.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9258798a47a417b0eeb960006feb547c58051aca19544c58ba6c54b975057c0e
BLAKE2b-256 checksum
How to use checksums
ae55caabacbd0dbeac7178aba19d05bcef77c6f82b9c2f45b222d8499473ee57
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.3 tqdm/4.65.0 importlib-metadata/4.13.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.3

Release files / ssh_certificate_parser-1.6.0-py3-none-any.whl

Download URL ssh_certificate_parser-1.6.0-py3-none-any.whl
Size 6.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
55929067b4a9ddac9602a68b6647f41b9634668b107cb6361a33c7d8224f08aa
BLAKE2b-256 checksum
How to use checksums
7ff2956d6eedd62ef46c8adf948fee9ef1faa150ded671aed1bf6280170808a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.9.6 readme-renderer/37.3 requests/2.31.0 requests-toolbelt/1.0.0 urllib3/2.0.3 tqdm/4.65.0 importlib-metadata/4.13.0 keyring/23.13.1 rfc3986/2.0.0 colorama/0.4.6 CPython/3.11.3

Security for ssh-certificate-parser 1.6.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page