diff --git a/src/viewer/js/der.js b/src/viewer/js/der.js index f2b5537..54bb775 100644 --- a/src/viewer/js/der.js +++ b/src/viewer/js/der.js @@ -266,11 +266,13 @@ export const parse = async (certificate) => { if (scts) { scts = Object.keys(scts.timestamps).map(x => { let logId = scts.timestamps[x].logID.toLowerCase(); + let sctsTimestamp = scts.timestamps[x].timestamp; return { logId: hashify(logId), name: ctLogNames.hasOwnProperty(logId) ? ctLogNames[logId] : undefined, signatureAlgorithm: `${scts.timestamps[x].hashAlgorithm.replace('sha', 'SHA-')} ${scts.timestamps[x].signatureAlgorithm.toUpperCase()}`, - timestamp: `${scts.timestamps[x].timestamp.toLocaleString()} (${timeZone})`, + timestamp: `${sctsTimestamp.toLocaleString()} (${timeZone})`, + timestampUTC: sctsTimestamp.toUTCString(), version: scts.timestamps[x].version + 1, } }); @@ -434,7 +436,9 @@ export const parse = async (certificate) => { }, issuer: parseSubsidiary(x509.issuer.typesAndValues), notBefore: `${x509.notBefore.value.toLocaleString()} (${timeZone})`, + notBeforeUTC: x509.notBefore.value.toUTCString(), notAfter: `${x509.notAfter.value.toLocaleString()} (${timeZone})`, + notAfterUTC: x509.notAfter.value.toUTCString(), subject: parseSubsidiary(x509.subject.typesAndValues), serialNumber: hashify(getObjPath(x509, 'serialNumber.valueBlock.valueHex')), signature: {