Skip to content

A small python script for auditing public certificate information from a DNS zonefile.

Notifications You must be signed in to change notification settings

seanbfuller/certaudit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Description

Python script to parse a DNS zonefile and output information about certificates for each domain to a csv file.

Environment setup

Based on OSX 10.14.x (Mojave)

References:

Install homebrew

Install python

  • brew install python
  • brew install pyenv
  • brew install pipenv
  • pyenv install 3.8.2
  • pyenv global 3.8.2
  • echo -e 'if command -v pyenv 1>/dev/null 2>&1; then\n eval "$(pyenv init -)"\nfi' >> ~/.bash_profile
  • source ~/.bash_profile

Run the script

Start the environment

pipenv shell

Build dependencies

pipenv install

Input file placement and cleanup

  • Place your zone file in the input folder.
  • Any entries in the form of "CNAME 1 " cannot be parsed by dnspython and must be removed from the file first.

Run the script against a file for domain example.com

  • pipenv run python main.py -i input/example.com.zonefile.txt -d example.com

Results

You should get a csv file in the output folder. A progress bar and any error will be output to the screen.

About

A small python script for auditing public certificate information from a DNS zonefile.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages