Added possibility to use mutual authentication