Added SSL support for the payload module