Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate CertFetcher with flag-protection into AMP Packager. (#349)
* Update ACME config to include email adddress and acme challenge port. Update certcache to use certfetcher if cert autorenew is turned on. Update certloader.PopulateCertCache to instantiate certfetcher and pass it on to certcache instance. * Add config file error checking for PopulateCertCache. * Add more logic to handle initial conditions with invalid cert and to address comments from gregable@. * Code refactor/cleanup involving certs. * Add DNS and TLS challenges, added them to load from config, cleaned up autorenewcert config parsing. * go mod tidy, go mod vendor updates * Fixed CSR Loading, added it to config * Fixed bugs with checking for cert expiry. * Added support for saving the fetched certs to disk and for certs to be loaded by non-auto-renewing amppackager instances. * Fixed gateway server call to certcache. Removed go module files inside gateway server dir. Re-ran go mod tidy. * Fixed certcache_test.go after merge. * Fixed bugs in certcache, also fixed unit test. * Added locking for reading/writing certs. * Ran go fmt on files that have incorrect formatting * Fix twifkak first-pass comments except the logic change comment which I will address in a later commit. * Fix twifkak comments for ocsp refresh logic and ocsp cache purge. * Fix additional twifkak comments. * Fix 2nd round of twifkak comments. * Fix gregable@ comments.
- Loading branch information