More concise approach to supporting https