mirror of
https://github.com/square/certigo.git
synced 2026-10-21 04:37:56 +00:00
This commit adds an explicit `golangci-lint` configuration that simply matches the default linters previously in use, and then fixes all current linter findings. Aside from tweaking error message strings, this commit introduces one externally visible behavior change: PEM data generated from PKCS#12 files now correctly identifies private key blocks as `RSA PRIVATE KEY` or `EC PRIVATE KEY`, whereas previously it generated invalid `PRIVATE KEY` blocks with non-PKCS#8 data. This commit lays the groundwork for more aggressive linting in the future, and identifies some additional issues via TODOs.