Added ssl lodgic