Improve the log message when peer id authentication fails
Split off
legacy/trac#26924 (moved)
.