605 Commits
Author SHA1 Message Date
Cedric Staub 79de7d2a35 Fix panic in explainCipher for TLS 1.3 ciphers 2019-06-07 12:47:52 -07:00
Cedric Staub 81ea33b668 Merge branch 'seththeriault-starttls-imap'
* seththeriault-starttls-imap:
  Mention STARTTLS IMAP support in README
  Rename dumpAuthTLSFromXXX methods
  Add support for IMAP STARTTLS
2019-05-21 11:21:30 -07:00
Cedric Staub 8a79f54775 Mention STARTTLS IMAP support in README 2019-05-21 11:21:15 -07:00
Cedric Staub 25850151d7 Rename dumpAuthTLSFromXXX methods 2019-05-21 11:20:24 -07:00
Seth Theriault 75258cfd3c Add support for IMAP STARTTLS 2019-05-21 11:57:46 -04:00
Matthew McPherrin 9ce8f40ef6 Merge pull request #181 from cpilsworth/fix/readme-example-json
added --json flag to readme examples
2019-03-29 13:44:29 -07:00
Chris Pilsworth be87b667d4 [trivial] added --json flag to readme examples
Without the flag the human readable details would be output which fail once piped into `jq`.
2019-03-29 20:34:21 +00:00
Matthew McPherrin e46f986c1b Merge pull request #180 from square/mmc/dc
Add DomainComponent from RFC 2247
2019-03-28 09:49:45 -07:00
Matthew McPherrin b6e169d63a Add DomainComponent from RFC 2247
I found TP-LINK routers submit some kind of logging to
n-devs.tplinkcloud.com:50443 and the CA that signed the certificate
for that domain had DCs in its subject

With this change we now get:
Issuer:
	DC=cn, DC=com, DC=tp-link, CN=TP-LINK CA P1
2019-03-27 22:51:22 -07:00
Mat Byczkowski 57dd69de7c Merge pull request #179 from CodeLingoBot/rewrite
Fix function comments based on best practices from Effective Go
2019-03-02 15:27:04 -08:00
CodeLingo Bot f328dcd6cc Fix function comments based on best practices from Effective Go
Signed-off-by: CodeLingo Bot <bot@codelingo.io>
2019-02-18 11:35:49 +00:00
Cedric Staub e1c3a71bdd Update version to 1.11.0 v1.11.0 2018-11-21 14:18:13 -08:00
Mat Byczkowski ba9eecbad8 Merge pull request #174 from square/mbyczkowski/docs-update
Update README and CONTRIBUTING
2018-11-10 22:04:18 -08:00
Mat Byczkowski 7cff30abc6 Update README and CONTRIBUTING
- readme: removed reference to Glide and mentioned Go modules
- contributing: language tweaks & updated link to CLA
- CI: remove glide dependency, since we don't need it and Go 1.11
  ignores vendored dirs when using `./...` argument to go tools.
2018-11-10 20:27:03 -08:00
Cedric Staub 7b933f5ff4 Merge pull request #170 from square/cs/go.mod
Switch to using Go modules
2018-10-23 15:11:42 -07:00
Cedric Staub 57a318f5be Switch to using Go modules 2018-10-23 14:52:08 -07:00
Cedric Staub 5c1e377a1d Update README.md 2018-10-23 14:46:04 -07:00
Cedric Staub 029bc47dfe Merge pull request #168 from square/cs/go-1.11
Use Go 1.11, use built-in functions for URI names
2018-10-23 14:45:43 -07:00
Cedric Staub d9c0b44abc Use Go 1.11, use built-in functions for URI names 2018-10-23 14:36:44 -07:00
Matthew McPherrin 40bd50b00b Merge pull request #167 from square/mighty-typo
Fix a tiny typo in a comment.
2018-07-06 13:59:29 -07:00
Matthew McPherrin e61c2446dc Fix a tiny typo in a comment. 2018-07-06 10:56:49 -07:00
Cedric Staub 692209eac1 Merge pull request #165 from square/cs/ocsp3
Improve reliability of OCSP checks
2018-04-10 15:14:31 -07:00
Cedric Staub 4dba9b2f4e Improve reliability of OCSP checks 2018-04-06 13:06:05 -07:00
Cedric Staub 0336aa7b5f Merge pull request #164 from square/cs/ocsp2
Print revocation reason & staple status
2018-04-06 12:33:15 -07:00
Cedric Staub 594b04e874 Print revocation reason & staple status 2018-04-05 16:01:17 -07:00
Matthew McPherrin 9edb483d9b Merge pull request #163 from square/mmc/libify
Support more formats for CA trust stores.
2018-04-05 10:56:37 -07:00
Matthew McPherrin f07f7d351c Support any format certigo does for CAs.
Todo: Right now it doesn't support any truststore password other than changeit.
That's what Java ships.  A follow-up commit will add better password handling
2018-04-04 21:21:46 -07:00
Matthew McPherrin c58011aee0 Move ocsp.go and verify.go into lib
This reduces a bunch of copy-paste code.
2018-04-04 21:21:46 -07:00
Cedric Staub c079619f11 Merge pull request #162 from square/cs/ocsp
Add OCSP support for connect command
2018-04-03 23:11:01 -07:00
Cedric Staub 7647f623bd Merge branch 'master' into cs/ocsp 2018-04-03 22:32:07 -07:00
Cedric Staub 57f83216c3 Update vendored dependencies 2018-04-03 22:21:23 -07:00
Cedric Staub adb0b65e08 Merge pull request #161 from square/csstaub-patch-1
Update README.md
2018-04-03 21:51:38 -07:00
Cedric Staub 399ed9bc6e Fix SNI handling, set server name for connect 2018-04-03 21:47:37 -07:00
Cedric Staub 20ca52ddd6 Update README.md 2018-04-03 21:40:40 -07:00
Cedric Staub 14ff9b3f05 Add some hacky OCSP status checking code 2018-04-03 18:06:16 -07:00
Matthew McPherrin ed8b7bf744 Merge pull request #160 from square/mmc/long-help
Default to using the "long" help format
2018-04-03 12:52:32 -07:00
Matthew McPherrin 16d197a5b9 Default to using the "long" help format
Certigo doesn't have too many options, so the long help is a reasonble default.
2018-04-03 12:41:11 -07:00
Cedric Staub f901d795db Merge pull request #159 from square/cs/err
Better error message for library users
2018-03-23 11:00:52 -07:00
Cedric Staub 68073b6b69 Merge branch 'master' into cs/err 2018-03-22 13:34:28 -07:00
Cedric Staub 796d17c565 Better error message for library users 2018-03-22 13:30:07 -07:00
Matthew McPherrin 04b09cbeb8 Merge pull request #158 from square/mmc/protocols
Improve FTP & starttls protocol handling
2018-03-14 18:12:51 -07:00
Matthew McPherrin 58f10be303 Add an aliased --starttls. DRY the protocols by putting them in starttls.go
Unfortunately kingpin doesn't support natively support aliased flag names, so
you can supply both --start-tls and --starttls without an error, but that's
just "holding it wrong".
2018-03-14 18:09:03 -07:00
Matthew McPherrin c22acb0991 More robust parsing of FTP protocol
I found some servers don't always return a space after the three-digit code
for example,

certigo connect --start-tls ftp ftp.mirrorservice.org:21
error connecting: FTP server responded with status 220-----------------------------------------------------------------------------
, was expecting 220

Instead, we always take the first three digits and parse them as an integer, rather than
relying on the space.  Makes the code look a little cleaner too, by returning it as an int.
2018-03-14 18:08:41 -07:00
Matthew McPherrin f9ccb1a03a Merge pull request #157 from square/mmc/default-port
Add protocol-specific default ports
2018-03-11 13:07:42 -07:00
Matthew McPherrin cbdcc47d56 Add protocol-specific default ports
If otherwise unspecified, default to port 443.
If a starttls protocol is given, use a protocol-specific default.

So now "certigo connect squareup.com" works.
2018-03-10 19:38:29 -08:00
Cedric Staub 6a3bab913b Merge pull request #155 from square/cs/go1.10
Better short names for printing
v1.10.0
2018-02-27 17:35:26 -08:00
Cedric Staub 25f903dabf Bump app version to 1.10.0 2018-02-27 17:25:15 -08:00
Cedric Staub d920cab6f0 Print only CN for verify results 2018-02-27 17:24:48 -08:00
Cedric Staub 63a3260918 Better short names for printing 2018-02-27 17:09:50 -08:00
Cedric Staub 4902e7daf5 Merge pull request #154 from square/cs/go1.10
Support new name constraint fields in crypto/x509
2018-02-27 17:01:57 -08:00