Cedric Staub
80b8463c76
Skip non-certificate PEM blocks
2016-06-21 11:48:00 -07:00
Cedric Staub
b17153a519
Print newline after cert dump from connect
2016-06-18 22:58:40 -07:00
Matthew McPherrin
aa77340189
Add periods for consistency
...
http://www.nytimes.com/2016/06/10/world/europe/period-full-stop-point-whatever-its-called-millennials-arent-using-it.html for background material.
2016-06-16 16:47:03 -07:00
Matthew McPherrin
5aee387a67
Add a flag to override the SNI server name
2016-06-16 16:15:10 -07:00
Matthew McPherrin
7fd5d218b6
Add a command to connect to a TLS server and print its presented certs
2016-06-16 14:54:53 -07:00
Cedric Staub
c10183ca14
Support streaming print of PEM blocks
2016-06-15 15:32:17 -07:00
Cedric Staub
2dacaaa051
Support --version flag
2016-06-14 11:07:02 -07:00
Cedric Staub
d449f162c9
Print error if p12 was empty/failed to parse
2016-06-11 10:44:27 -07:00
Cedric Staub
b1be150ab1
Add jks to jceks mapping, partially supported
2016-06-11 10:44:04 -07:00
Cedric Staub
9043438701
Display PKCS12 friendly name for certs
2016-06-10 18:41:41 -07:00
Cedric Staub
e170b65676
Support multiple file arguments
2016-06-10 16:44:33 -07:00
Alok Menghrajani
119957afce
Improve password input handling
...
Plays nicer when doing: ./certigo dump foo.jceks | grep ...
2016-06-09 23:58:33 -07:00
Cedric Staub
9152b7de00
Guess file format based on initial 4 bytes of data
2016-06-08 20:12:14 -07:00
Christopher Denny
2aff47e70f
Merge pull request #42 from square/cdenny/fixConflict
...
Cdenny/fix conflict
2016-06-07 15:02:55 -07:00
Christopher Denny
2f91f11764
Removed erronous support for jks files and renamed corresponding
...
file in certs folder to use jceks extension.
2016-06-07 15:00:26 -07:00
Christopher Denny
d90fbacb89
Converted der section in getCerts to use updated ioreader instead of filename.
2016-06-07 14:38:38 -07:00
Christopher Denny
f07e32d1c8
Merge branch 'cdenny/derSupport' into cdenny/fixConflict
...
* cdenny/derSupport:
Added der support and a sample der cert in the certs folder.
2016-06-07 14:28:29 -07:00
Christopher Denny
46170e7bf2
Added der support and a sample der cert in the certs folder.
2016-06-07 14:18:23 -07:00
Cedric Staub
e27b86e0dc
Algorithm color highlighting
2016-06-07 14:02:24 -07:00
Cedric Staub
327dcdf884
Support stdin, add examples to readme
2016-06-07 13:48:04 -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
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
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
Cedric Staub
ce009228ac
Guess more formats, clean up guessing code
2016-06-03 12:14:46 -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
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
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
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
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
Cedric Staub
0ef272def6
Add license headers
2016-06-01 14:03:26 -07:00
Christopher Denny
25c29ea78f
Now supports multiple certs in a single pkcs12 file.
2016-06-01 13:16: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
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