Add the SSL logic.