[Reviewer: Andy] Fix secure connections

Andy,

Please can you review this fix to secure connections?  Originally, secure connections were part of garden, but garden is now deprecated so I've moved this function into these packages?

Matt