Added possibility to use client certificate