Working on authentification - still working on X509 auth.