Work on client certificates

* improved logging
* exit with error when configuration file couldn't be opened
* removed hardcoded NO for using client certificates
* added support for pkcs#12 files
* fixed issue with ignoring client certificate configuration