This PR also extends the TLSConfig within Server.go to allow the TLS certificate, private key and client CAs to be passed inline as a string. The content of this string is expected to be exactly the as a file, a PEM-encoded sequence of bytes. All parameters are then passed forward to web.TLSConfig within prometheus/exporter-toolkit as before.
With https://github.com/prometheus/exporter-toolkit/pull/158, it is now possible pass forward TLS certificates and keys inline as part of the
TLSConfig
for the Server.This PR also extends the
TLSConfig
withinServer.go
to allow the TLS certificate, private key and client CAs to be passed inline as a string. The content of this string is expected to be exactly the as a file, a PEM-encoded sequence of bytes. All parameters are then passed forward toweb.TLSConfig
withinprometheus/exporter-toolkit
as before.