We're looking to reuse this in Cortex to client side encrypt our
connections and not having this exposed is making us copy this entire
function.
Signed-off-by: Goutham Veeramachaneni <gouthamve@gmail.com>
Add support for https connections.
Signed-off-by: ksherryBAE <kieran.sherry@baesystems.com>
Signed-off-by: James Ritchie <james.g.ritchie@baesystems.com>
Signed-off-by: Simon Pasquier <spasquie@redhat.com>
Signed-off-by: Ben RIdley <benridley29@gmail.com>