110 Commits
Author SHA1 Message Date
Sarah Harvey 70450a4499 Support JSON output from certigo 2016-09-24 17:23:57 -07:00
Cedric Staub 90f8ba5014 Add separate verify command to validate certificates 2016-09-18 20:39:25 -07:00
Cedric Staub 0a355c64b7 Strip headers from PEM output blocks
Not all software supports extra headers. Notably, OpenSSL will be sad
and refuse to parse the PEM block. Fixes #89.
2016-08-10 17:13:11 -07:00
Cedric Staub 75971b0d3f Prepare for 1.3.0 release 2016-07-27 14:20:20 -07:00
Cedric Staub 74d3b048a4 Support PKCS7 envelopes, multiple certificates in DER streams 2016-07-26 23:27:14 -07:00
Cedric Staub 10216eb40e Add support for dumping certs from PKCS7 containers 2016-07-26 22:19:35 -07:00
Cedric Staub 5924aa789a Prepare for 1.2.0 release 2016-06-30 15:39:54 -07:00
Cedric Staub 80c600d112 Add command-line test scripts 2016-06-28 11:28:02 -07:00
Cedric Staub 64a1f920bf Correct typo in flag description 2016-06-28 10:41:46 -07:00
Cedric Staub a4b9d15100 Avoid printing /dev/stdin as origin file 2016-06-27 19:46:39 -07:00
Cedric Staub 7b3b16e44f Update README with new examples/help output 2016-06-27 18:57:44 -07:00
Cedric Staub 03bb355f3a Add --pem flag for dump/connect, rm pem command 2016-06-27 18:51:38 -07:00
Cedric Staub 20a2fd1094 Clean up cert extraction logic 2016-06-27 18:41:40 -07:00
Cedric Staub e02f01b232 Pass arguments instead of using flags 2016-06-23 11:24:23 -07:00
Cedric Staub db0bb7a644 Add verify debug output to connect command 2016-06-22 23:11:44 -07:00
Cedric Staub beac5ca8f4 Prepare for 1.1.0 release 2016-06-22 11:11:00 -07:00
Cedric Staub a7caa8960c Support elliptic curve keys 2016-06-21 17:48:40 -07:00
Cedric Staub b76eb3bf5d Merge pull request #73 from square/cs/to-pem
Add command for converting any input to PEM blocks
2016-06-21 14:44:36 -07:00
Cedric Staub 03ace9672e Add command for converting any input to PEM blocks 2016-06-21 13:56:36 -07:00
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