mirror of
https://github.com/square/certigo.git
synced 2024-04-21 12:32:40 +00:00
323f7dc4b9063984f673c0a0cd21d7ad5fe7bb87
certigo
Certigo is a utility to examine and validate certificates in a variety of formats.
Install
To install certigo, simply use:
go get github.com/square/certigo
Note that certigo requires Go 1.6 or later to build.
Develop
We use glide for managing vendored dependencies.
Usage
Certigo can read certificates/keystores in various formats and dump them to stdout.
For example (from stdin):
$ certigo dump --format PEM < certificate.pem
** CERTIFICATE 1 **
Serial: 11578389349061131131
Not Before: 2016-05-27 21:15:31 +0000 UTC
Not After : 2017-10-09 21:15:31 +0000 UTC
Signature algorithm: SHA1-RSA
Subject Info:
CommonName: ApertureScience
Organization: [Aperture Science]
OrganizationalUnit: [Research and Development]
Country: [US]
Locality: [San Francisco]
Issuer Info:
CommonName: ApertureScience
Organization: [Aperture Science]
OrganizationalUnit: [Research and Development]
Country: [US]
Locality: [San Francisco]
Or from a file:
$ certigo dump keystore.jceks
Enter password: some-password
** CERTIFICATE 1 **
Alias: trusted-cert-some-alias
Serial: 15734933907626610346
Not Before: 2014-03-14 14:10:45 +0000 UTC
Not After : 2015-03-14 14:10:45 +0000 UTC
Signature algorithm: SHA1-RSA
Subject Info:
CommonName: Test User
Organization: [Test Organization]
Country: [US]
Issuer Info:
CommonName: Test User
Organization: [Test Organization]
Country: [US]
Languages
Go
59.7%
Perl
39.7%
Makefile
0.5%