Christopher Denny
92bcde9ceb
Merge pull request #35 from square/cdenny/aliasDisplay
...
Added support to output alias info for jceks certs.
2016-06-07 13:14:48 -07:00
Christopher Denny
01131ea73e
Made CertWithAlias type nonexportable.
2016-06-07 13:12:15 -07:00
Christopher Denny
248a04a234
Cleaned up alias output.
...
No longer uses separate arrays for certs and their aliases. Now both are
contained in a single struct called CertWithAlias. An array of these
are passed around instead of two separate arrays, one for certs and one
for their aliases.
2016-06-07 12:59:21 -07:00
Christopher Denny
297aa9246a
Added support to output alias info for jceks certs.
...
GetCerts now returns an array of alias strings along with certs,
the array contains empty strings if not jceks. DisplayCerts
now takes in an alias string along with the cert and only prints
it if non empty.
2016-06-06 16:13:27 -07:00
Christopher Denny
11aa7e6199
Merge pull request #32 from square/cdenny/jceksSupport
...
Added jceks support. Uses jceks package to parse files.
2016-06-03 14:12:40 -07:00
Christopher Denny
649a7e64b2
Changed alias password request for jceks to use printf made 'alias' lowercase.
2016-06-03 13:56:15 -07:00
Christopher Denny
e68f592713
JCEKS support also finds certs tied to private keys.A
...
Uses the GetPrivateKeyAndCerts method from jceks package to find
these additional certs.
2016-06-03 13:35:44 -07:00
Cedric Staub
683ebb6fbb
Merge pull request #33 from square/cs/jceks-authors
...
Add AUTHORS file to jceks package
2016-06-03 13:26:15 -07:00
Cedric Staub
5adab41e06
Add AUTHORS file to jceks package
2016-06-03 13:24:11 -07:00
Christopher Denny
aeb0a62d46
Changed case checking for user input of JKS to check for JCEKS
2016-06-03 13:15:59 -07:00
Christopher Denny
6aed39208c
Added jceks support. Uses jceks package to parse files.
2016-06-03 13:14:01 -07:00
Christopher Denny
b273c97123
Merge pull request #31 from square/cs/guess-more-formats
...
Guess more formats, clean up guessing code
2016-06-03 13:08:13 -07:00
Cedric Staub
ce009228ac
Guess more formats, clean up guessing code
2016-06-03 12:14:46 -07:00
Christopher Denny
220179c4d1
Merge pull request #30 from square/cs/jceks
...
Add jceks sub-package
2016-06-02 20:38:31 -07:00
Christopher Denny
9992010884
Merge pull request #29 from square/cdenny/outputFormatting
...
Fixed empty fields in output, output of large arrays, and ip addresses and emails
2016-06-02 20:37:43 -07:00
Christopher Denny
42f749ac1c
Absent cert fields no longer print N/A, they just don't print at all.
...
-Switched from spaces to tabs
-Note, if either Subject or Issuer have ALL fields not present it'll still print "subject info:" or "issuer info:"
2016-06-02 16:22:50 -07:00
Cedric Staub
8b92817d07
Add jceks sub-package
2016-06-02 15:41:55 -07:00
Christopher Denny
85bea13299
Merge pull request #28 from square/cs/glide
...
Use glide for vendoring
2016-06-02 14:56:31 -07:00
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
Cedric Staub
3b178e1c65
Use glide for vendoring
2016-06-02 14:42:41 -07:00
Cedric Staub
985a770470
Merge pull request #26 from square/cs/travis
...
Add travis-ci build file
2016-06-02 14:18:12 -07:00
Cedric Staub
41e8c27fdc
Add travis-ci build file
2016-06-02 14:01:38 -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