Feature: daemons: Set up X509 auth in based if enabled.
This just handles everything that needs to be done during initial setup,
before a remote connects and performs the handshake. Log error messages
if they occur - there's plenty of opportunities for things to fail here.
Ref T365