* feat: add UseMTLS config
* feat: add mTLS auth for CNS
* test: add testdata for mTLS tests
* chore: add logs on TLS config retrieval
* lint: in tests
* refactor: use CNS logger, not ACN logger
* refactor: add guards to mtlsRootCAsFromCertificate and unit tests
* lint: fix lint errors
* test: include HTTP listener tests for when TLS/mTLS is enabled
* chore: add log for stopping the TLS listener
* test: add test helper to create certificates for testing instead of using hardcoded pem file
* test: assert non-TLS service has no TLSSettings
* test: refactor TestMtlsRootCAsFromCertificate to table-based tests
* refactor: pull listener addresses from listener and remove redundant struct field for tls address
The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
* changes to support http and https for CNS
* correct small typo
* address feedback
* address feedback
* rename file
* small fix
* small fix
* fixing issue with cert not found