Christopher Denny
d86830f197
Fixed empty fields in output, output of large arrays, and ip addresses and emails
...
-If a field in a cert is blank, prints N/A
-Large arrays are now newline separated in the output, instead of all on one line
-Displays cert alternate ip addresses and email addresses as well
2016-06-02 14:54:25 -07:00
Christopher Denny
56e78f9f3e
Merge pull request #22 from square/cdenny/multiCertOutput
...
Added formatting for when multiple certs are in a single file.
2016-06-02 11:28:32 -07:00
Christopher Denny
eb8cfd2730
Added formatting for when multiple certs are in a single file. Each
...
cert is now newline separated and they are numbered off.
2016-06-02 11:20:13 -07:00
Christopher Denny
b5480a38d9
Merge pull request #8 from square/cs/hexify
...
Better hexify implementation
2016-06-01 19:51:16 -07:00
Christopher Denny
9663385149
Merge pull request #6 from square/cs/terminology
...
Fix terminology in output
2016-06-01 19:49:39 -07:00
Cedric Staub
68c1be3316
Better hexify implementation
2016-06-01 19:33:37 -07:00
Cedric Staub
40cf087bf3
Fix terminology in output
2016-06-01 19:23:47 -07:00
Christopher Denny
aff29bad47
Merge pull request #5 from square/cdenny/dateValidity
...
Cdenny/date validity
2016-06-01 17:04:46 -07:00
Christopher Denny
abdfdc9ed1
Updated document style to match go design doc. Changed color display
...
methods to return a string of the correct color, rather than printing
it and returning an empty string. Changed names of color display methods
to certStart and certEnd.
2016-06-01 16:25:01 -07:00
Christopher Denny
0a5be89970
Display.go wasn't included in last commit.
2016-06-01 15:30:21 -07:00
Christopher Denny
1e2cdd799b
Added color output for start and expiry dates, documented methods.
...
displayCert now prints out the start or expiry date in different colors
depending on how close the deadline is. Also all methods have comments
explaining arguments/return value and basic overview.
2016-06-01 15:27:58 -07:00
christodenny
ab803767ee
Merge pull request #4 from square/cs/license-headers
...
Add license headers
2016-06-01 14:04:11 -07:00
Cedric Staub
0ef272def6
Add license headers
2016-06-01 14:03:26 -07:00
christodenny
5624b9cf86
Merge pull request #3 from square/cdenny/p12support
...
Cdenny/p12support
2016-06-01 13:41:53 -07:00
Christopher Denny
25c29ea78f
Now supports multiple certs in a single pkcs12 file.
2016-06-01 13:16:03 -07:00
Christopher Denny
06fb6b9fc9
Updated display.go, it now also properly displays the encryption algorithm
...
for a given cert.
2016-06-01 12:57:36 -07:00
Christopher Denny
c6fc5cc3fe
Finished moving over to templates instead of print statememts.
...
NOTE: displaying algorithm type still doesn't work, it only displays
the number, not the actual encryption type.
2016-06-01 11:31:03 -07:00
Christopher Denny
4efaaf765f
Moved code to display certificates to separate file, (display.go). Still
...
uses println instead of templates.
2016-05-31 17:08:31 -07:00
Christopher Denny
c8e6ba9f39
Changed pkcs12 support to first convert to pem. THIS DOES NOT WORK PROPERLY YET. Still need to look into why
...
using pkcs12.ToPem causes errors when parsing the resulting data when using x509.ParseCertificates().
2016-05-31 15:59:43 -07:00
Christopher Denny
c13b09abe7
Added support for the command line interface kingpin, has basic error handling.
...
I still need to changed the p12 support to display all the certificates present. pkcs12.decode only
returns one cert even if more present. Going to use pkcs12.topem to convert to pem which I know
how to get all the certs from.
2016-05-31 14:19:03 -07:00
Christopher Denny
60c91d7204
main.go wasn't added to the previous commit? So here's that.
2016-05-27 16:36:32 -07:00
Christopher Denny
9b6c725a6b
-Added support for reading .p12 certs.
...
-Separated out different functions a little better (parsing files/displaying).
-Added new certs/keys in certs folder to use when testing.
2016-05-27 16:32:54 -07:00
Matthew McPherrin
b46410d398
Merge pull request #2 from square/shh/certigo/fix_readme
...
Fix CONTRIBUTING statement
2016-05-27 14:05:26 -07:00
Sarah Harvey
d28065f7c9
Fix CONTRIBUTING statement
2016-05-27 13:59:26 -07:00
christodenny
5c5dc6d537
Merge pull request #1 from square/cdenny/readme
...
Update the readme with a description
2016-05-27 13:46:02 -07:00
Christopher Denny
a0fbb71045
Update the readme with a description
2016-05-27 13:42:51 -07:00
Sarah Harvey
275adb949b
Add CONTRIBUTING and LICENSE
2016-05-27 13:25:18 -07:00
Christopher Denny and Sarah Harvey
dad3ab27b7
first few files, main.go can work with .pem files that have just certs in them. Sample .pem and .jceks included as well
2016-05-27 13:25:09 -07:00
Christopher Denny
a8f650175e
first commit
2016-05-27 11:29:41 -07:00