Skip to main content

sanpai

Sanpai is a tool for inspecting and diffing SANs on x509 certificates.

Modules

For converting a directory to a dict, use convert_dir:

>>> from sanpai import san
>>> domains = san.inspect(pem_file="path/to/cert.pem")
>>> type(domains)
<type 'list'>

Scripts

From command line, retrieve newline-separated list of domains attached to a cert:

$ sanpai /path/to/cert.pem
subdomain.example.com
example.org
*.wilcard.io

Compare two certs:

$ sanpai /path/to/cert1.pem --diff /path/to/cert2.pem
- subdomain.example.com
+ www.example.org
! example.org
...

Installation

To install Sanpai, simply:

$ pip install sanpai

Metadata

Release files for sanpai 0.1

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

Source distribution (sdist)

Source distribution for sanpai 0.1
File Size Uploaded Provenance
sanpai-0.1.tar.gz 2.5 kB Without provenance Details

Release files / sanpai-0.1.tar.gz

Download URL sanpai-0.1.tar.gz
Size 2.5 kB
Tags Source
SHA-256 checksum
How to use checksums
1b19972c438999c95b2dc4aae7b6eb99a5ae2ba9af40fd20b5382cc4377b654a
BLAKE2b-256 checksum
How to use checksums
9e7a7a732716a7ba7abcdd916b38b8e161355fa7e09320af6cbf3ca6aaa9353b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for sanpai 0.1

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.

Release history Release notifications | RSS feed

This release

0.1 This release

1 release file No provenance

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