crt-lint

command module
v0.0.0-...-e5e2606 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 26 Imported by: 0

README

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!

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL