Skip to main content

sanpai is a tool for inspecting and diffing SANs on x509 certificates

Project description

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

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

sanpai-0.1.tar.gz (2.5 kB view details)

Uploaded Source

File details

Details for the file sanpai-0.1.tar.gz.

File metadata

  • Download URL: sanpai-0.1.tar.gz
  • Upload date:
  • Size: 2.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for sanpai-0.1.tar.gz
Algorithm Hash digest
SHA256 1b19972c438999c95b2dc4aae7b6eb99a5ae2ba9af40fd20b5382cc4377b654a
MD5 847977c3bdc3d7f089bc6c15625415e4
BLAKE2b-256 9e7a7a732716a7ba7abcdd916b38b8e161355fa7e09320af6cbf3ca6aaa9353b

See more details on using hashes here.

Supported by

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