Fix client certificate authentication

It must be possible to provide two different files: a pem file and a key file.