Commit Graph
35 Commits
Author SHA1 Message Date
Cedric Staub 3ccd98f60f Couple more fixes and tests 2016-09-27 13:35:26 -07:00
Cedric Staub 93ed3fc1fe Fix template, remove trailing whitespace 2016-09-27 13:10:42 -07:00
Sarah HarveyandCedric Staub d69167a2b8 Resolve some comments 2016-09-24 17:23:57 -07:00
Sarah HarveyandCedric Staub 70450a4499 Support JSON output from certigo 2016-09-24 17:23:57 -07:00
Cedric Staub 10216eb40e Add support for dumping certs from PKCS7 containers 2016-07-26 22:19:35 -07:00
Cedric Staub 8085d5a851 Support Go 1.5, don't depend on x509.SignatureAlgorithm.String() 2016-07-25 17:13:52 -07:00
Cedric Staub 20a2fd1094 Clean up cert extraction logic 2016-06-27 18:41:40 -07:00
Cedric Staub d64905256a Improve formatting, show if self-signed 2016-06-24 22:37:27 -07:00
Cedric Staub 004de6e6e8 Remove extra arg from sprintf 2016-06-21 16:16:55 -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 e170b65676 Support multiple file arguments 2016-06-10 16:44:33 -07:00
Cedric Staub 268c65840f Add more warnings for certificates 2016-06-10 11:54:25 -07:00
Cedric Staub da44d8269e Fix version warning format string 2016-06-09 23:19:26 -07:00
Cedric Staub e3fb5bac7e Show key usage and extended key usage 2016-06-08 13:28:29 -07:00
Cedric Staub 2cca37e92a Show lints/warnings when dumping certificates 2016-06-07 17:44:02 -07:00
Cedric Staub c00abaa932 Show name constraints 2016-06-07 16:56:18 -07:00
Cedric Staub af46a622fc Show basic constraints 2016-06-07 16:50:13 -07:00
Cedric Staub e27b86e0dc Algorithm color highlighting 2016-06-07 14:02:24 -07:00
Cedric Staub 4478d0a374 Put serial on top of output 2016-06-07 13:23:29 -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 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 b5480a38d9 Merge pull request #8 from square/cs/hexify
Better hexify implementation
2016-06-01 19:51:16 -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 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
Cedric Staub 0ef272def6 Add license headers 2016-06-01 14:03:26 -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