Home

Awesome

cif

Software License GoDoc Build Status Coverage Report

Formats PEM certificates in a nice human readable (mkcert.org) format

Installing

Compile

This project has only been tested with go1.11+. To compile just run go get -u github.com/gesquive/cif and the executable should be built for you automatically in your $GOPATH. This project uses go mods, so you might need to set GO111MODULE=on in order for go get to complete properly.

Optionally you can run make install to build and copy the executable to /usr/local/bin/ with correct permissions.

Download

Alternately, you can download the latest release for your platform from github.

Once you have an executable, make sure to copy it somewhere on your path like /usr/local/bin or C:/Program Files/. If on a *nix/mac system, make sure to run chmod +x /path/to/cif.

Homebrew

This app is also avalable from this homebrew tap. Just install the tap and then the app will be available.

$ brew tap gesquive/tap
$ brew install cif

Usage

Generate certificate summary information for PEM certificates and output (in mkcert.org format)

Usage:
  cif [flags] <cert_path> [<cert_path>...]

Flags:
      --version   Display the version info and exit

Optionally, a hidden debug flag is available in case you need additional output.

Hidden Flags:
  -D, --debug     Include debug statements in output

You can also pipe in certificates in addition to specified files on the command line:

$ cif pki-chain.pem
$ cat massive-cert-store.pem | cif 
$ app-with-output | cif

Documentation

This documentation can be found at github.com/gesquive/cif

License

This package is made available under an MIT-style license. See LICENSE.

Contributing

PRs are always welcome!