First working version of SSL mutual authentication