Check ssl when in production mode only