validateUnsealedEnvelope: On expire, log serverTimestamp vs. expiration

This commit is contained in:
Scott Nonnenberg 2022-07-20 17:15:26 -07:00 committed by GitHub
parent e321e1fea8
commit 4cd05dc6c9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -1384,7 +1384,9 @@ export default class MessageReceiver
if (envelope.serverTimestamp > certificate.expiration()) {
throw new Error(
'MessageReceiver.validateUnsealedEnvelope: ' +
`Sender certificate is expired for envelope ${logId}`
`Sender certificate is expired for envelope ${logId}, ` +
`serverTimestamp: ${envelope.serverTimestamp}, ` +
`expiration: ${certificate.expiration()}`
);
}