repro: fixes for CommonNameMappings, display meaningful error (backport r10052, r10053)

git-svn-id: https://svn.resiprocate.org/rep/resiprocate/branches/resiprocate-1.8@10054 ddefafc4-47db-0310-ae44-fa13212b10f2