Added support to enforce an SSL connection.