prometheus/common#31 copied the tls config code over to common so it could be shared with the blackbox exporter. We should switch prometheus over to use this too for consistency. It's likely the alertmanager will also end up using this for webhook and/or HA.