+str #15402 SSL support for streams (working for happy case)

SSL support for streams
lot's of curly braces here :-)