Fix lookup of cert principal by X.509 name
Write entire message ID to mdn/ directory