Add possibility to set X.509 certificate & key for authentication
This is preparatory work for introduction of public key authentication.