Code Monkey home page Code Monkey logo

crt-lint's Introduction

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 [email protected]:pkic/crt-lint.git
git clone [email protected]: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!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.