Skip to content

blaketmiller/sanpai

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 

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

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages