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.
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file ssh_certificate_parser-1.6.0.tar.gz
.
File metadata
- Download URL: ssh_certificate_parser-1.6.0.tar.gz
- Upload date:
- Size: 7.0 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9258798a47a417b0eeb960006feb547c58051aca19544c58ba6c54b975057c0e |
|
MD5 | 44450496098f7a99d18b39dc0932d982 |
|
BLAKE2b-256 | ae55caabacbd0dbeac7178aba19d05bcef77c6f82b9c2f45b222d8499473ee57 |
File details
Details for the file ssh_certificate_parser-1.6.0-py3-none-any.whl
.
File metadata
- Download URL: ssh_certificate_parser-1.6.0-py3-none-any.whl
- Upload date:
- Size: 6.1 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 55929067b4a9ddac9602a68b6647f41b9634668b107cb6361a33c7d8224f08aa |
|
MD5 | 3e500fd3e4a9e61883edf9659dcea168 |
|
BLAKE2b-256 | 7ff2956d6eedd62ef46c8adf948fee9ef1faa150ded671aed1bf6280170808a2 |