This commit fixes some minor issues with self signed certificates. On
the way to that fix, some other issues were fixed, which I can't
remember.
This also adds a couple of log output to make it easier to understand,
what actually happens in the daemon.
The parameters weren't used because of using the package instead of the
variable.
Also the output of the show-cert option was adjusted because of the long
hash. There needs to be a better solution for that.