7 Commits
Author SHA1 Message Date
John WoodandGitHub 44210f297c Remove ioutil (#289) 2022-08-11 10:59:59 -07:00
John WoodandGitHub 7ef0417bde Allow any ciphersuite in TestConnect (#268) 2022-06-06 08:47:20 -07:00
John WoodandGitHub 5332ac7ca2 Fix TestConnect on macOS (#265)
@bdd did an excellent writeup of the issue in #264. To fix this, stop relying on stable error messages between platforms and Go versions by performing a successful certigo connect in the test rather than a failed one.

I generated new ECDSA certificates for localhost using https://github.com/square/certstrap.
2022-06-01 10:20:03 -07:00
John WoodandGitHub 9e92473320 Set certs explicitly (#259) 2022-02-23 13:02:49 -08:00
Roy Xu 07965a4a02 add test for connect 2020-02-28 16:02:40 -05:00
Roy XuandGitHub f81df5c5a3 print input format guessed by certigo (#210) 2020-02-25 11:17:01 -08:00
Matthew McPherrin 26cd65d9bd refactor certigo package main
This splits the logic into a cli, which handles parsing command line args and
reading files, and a terminal abstraction for handling user input and ouput.

All uses of os.Exit are removed in favor of returning errors.

Overall this enables better testing and reuse of code.  Previously we had to
rely on external unit testing for CLI tests, which are harder to write tests.
2020-01-13 15:58:53 -08:00