Set ssl session on the stack.