Expose the ability to configure the SSLContext, backport #996