Skip to content
/ crt-lint Public

A command line utility for running a specific ZLint linter against the crt.sh database of certificates logged to certificate transparency

License

Notifications You must be signed in to change notification settings

pkic/crt-lint

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A command line utility for running a specific ZLint linter against the crt.sh database of certificates logged to certificate transparency.

Installation

To install crt-lint, you will need to have Go installed on your system. Once you have Go installed, you can run the following command to install crt-lint:

go get github.com/pkic/crt-lint

Usage

To run crt-lint, you will need to specify the linter that you want to use and the domain that you want to check. For example, to run the CertificatePoliciesLinter on the domain example.com, you would run the following command:

usage: `crt-lint [flags]`
  -batch int
        Number of certificates to ask for per query (default 1000)
  -lint string
        Lint name (required)
  -offset int
        Last crt.sh ID processed
  -out string
        Output filename (default "result.csv")
  -workers int
        Number of concurrent worker (default 10)

Testing locally

To test new or updates to your lints you can simply use a Go workspace pointing to the local versions.

Clone this repository and the ZLint repository if you haven't done so yet:

git clone git@github.com:pkic/crt-lint.git
git clone git@github.com:zmap/zlint.git

Configure your Go workspace so that it's aware of the local repository and ignores the remote that doesn't hold the changes:

go work init
go work use crt-lint zlint

Now you can test the local version of the lint with the following command:

go run ./crt-lint -lint e_name_of_the_lint

Contributing

If you would like to contribute to crt-lint, please fork the repository and submit a pull request. We welcome any and all contributions!

About

A command line utility for running a specific ZLint linter against the crt.sh database of certificates logged to certificate transparency

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages