|
258 | 258 | <NcListItem v-if="signer.opened && signer.timestamp.displayName" |
259 | 259 | class="extra" |
260 | 260 | compact |
261 | | - :name="t('libresign', 'Timestamp:')"> |
| 261 | + :name="t('libresign', 'Timestamp Authority:')"> |
262 | 262 | <template #name> |
263 | | - <strong>{{ t('libresign', 'Timestamp:') }}</strong> |
| 263 | + <strong>{{ t('libresign', 'Timestamp Authority:') }}</strong> |
264 | 264 | {{ signer.timestamp.displayName }} |
265 | 265 | </template> |
266 | 266 | </NcListItem> |
|
273 | 273 | {{ dateFromSqlAnsi(signer.timestamp.genTime) }} |
274 | 274 | </template> |
275 | 275 | </NcListItem> |
| 276 | + <NcListItem v-if="signer.timestamp.policy" |
| 277 | + class="extra-chain" |
| 278 | + compact |
| 279 | + :name="t('libresign', 'TSA Policy:')"> |
| 280 | + <template #name> |
| 281 | + <strong>{{ t('libresign', 'TSA Policy:') }}</strong> |
| 282 | + <span v-if="signer.timestamp.policyName"> |
| 283 | + {{ signer.timestamp.policyName }} ({{ signer.timestamp.policy }}) |
| 284 | + </span> |
| 285 | + <span v-else> |
| 286 | + {{ signer.timestamp.policy }} |
| 287 | + </span> |
| 288 | + </template> |
| 289 | + </NcListItem> |
| 290 | + <NcListItem v-if="signer.timestamp.serialNumber" |
| 291 | + class="extra-chain" |
| 292 | + compact |
| 293 | + :name="t('libresign', 'TSA Serial:')"> |
| 294 | + <template #name> |
| 295 | + <strong>{{ t('libresign', 'TSA Serial:') }}</strong> |
| 296 | + {{ signer.timestamp.serialNumber }} |
| 297 | + </template> |
| 298 | + </NcListItem> |
| 299 | + <NcListItem v-if="signer.timestamp.hashAlgorithm" |
| 300 | + class="extra-chain" |
| 301 | + compact |
| 302 | + :name="t('libresign', 'TSA Hash Algorithm:')"> |
| 303 | + <template #name> |
| 304 | + <strong>{{ t('libresign', 'TSA Hash Algorithm:') }}</strong> |
| 305 | + <span>{{ signer.timestamp.hashAlgorithm || signer.timestamp.hashAlgorithmOID }}</span> |
| 306 | + <span v-if="signer.timestamp.hashAlgorithmOID && signer.timestamp.hashAlgorithm && signer.timestamp.hashAlgorithm !== signer.timestamp.hashAlgorithmOID"> |
| 307 | + ({{ signer.timestamp.hashAlgorithmOID }}) |
| 308 | + </span> |
| 309 | + </template> |
| 310 | + </NcListItem> |
| 311 | + <NcListItem v-if="signer.timestamp.accuracy && (signer.timestamp.accuracy.seconds || signer.timestamp.accuracy.millis || signer.timestamp.accuracy.micros)" |
| 312 | + class="extra-chain" |
| 313 | + compact |
| 314 | + :name="t('libresign', 'TSA Accuracy:')"> |
| 315 | + <template #name> |
| 316 | + <strong>{{ t('libresign', 'TSA Accuracy:') }}</strong> |
| 317 | + <span v-if="signer.timestamp.accuracy.seconds">{{ signer.timestamp.accuracy.seconds }}s</span> |
| 318 | + <span v-if="signer.timestamp.accuracy.millis"> {{ signer.timestamp.accuracy.millis }}ms</span> |
| 319 | + <span v-if="signer.timestamp.accuracy.micros"> {{ signer.timestamp.accuracy.micros }}μs</span> |
| 320 | + </template> |
| 321 | + </NcListItem> |
| 322 | + <NcListItem v-if="signer.timestamp.ordering !== undefined" |
| 323 | + class="extra-chain" |
| 324 | + compact |
| 325 | + :name="t('libresign', 'TSA Ordering:')"> |
| 326 | + <template #name> |
| 327 | + <strong>{{ t('libresign', 'TSA Ordering:') }}</strong> |
| 328 | + {{ signer.timestamp.ordering ? t('libresign', 'Yes') : t('libresign', 'No') }} |
| 329 | + </template> |
| 330 | + </NcListItem> |
| 331 | + <NcListItem v-if="signer.timestamp.nonce" |
| 332 | + class="extra-chain" |
| 333 | + compact |
| 334 | + :name="t('libresign', 'TSA Nonce:')"> |
| 335 | + <template #name> |
| 336 | + <strong>{{ t('libresign', 'TSA Nonce:') }}</strong> |
| 337 | + {{ signer.timestamp.nonce }} |
| 338 | + </template> |
| 339 | + </NcListItem> |
| 340 | + <div v-if="signer.timestamp.chain && signer.timestamp.chain.length > 0"> |
| 341 | + <NcListItem class="extra-chain" |
| 342 | + compact |
| 343 | + :name="t('libresign', 'TSA Certificate Chain:')"> |
| 344 | + <template #name> |
| 345 | + <strong>{{ t('libresign', 'TSA Certificate Chain:') }}</strong> |
| 346 | + </template> |
| 347 | + </NcListItem> |
| 348 | + <NcListItem v-for="(cert, certIndex) in signer.timestamp.chain" |
| 349 | + :key="`tsa-cert-${certIndex}`" |
| 350 | + class="extra-chain" |
| 351 | + compact> |
| 352 | + <template #name> |
| 353 | + <strong>{{ t('libresign', 'Subject:') }}</strong> |
| 354 | + {{ cert.name || cert.subject?.CN || t('libresign', 'Unknown') }} |
| 355 | + <br> |
| 356 | + <small> |
| 357 | + <strong>{{ t('libresign', 'Valid from:') }}</strong> |
| 358 | + {{ cert.validFrom_time_t ? new Date(cert.validFrom_time_t * 1000).toLocaleString() : t('libresign', 'Unknown') }} |
| 359 | + <br> |
| 360 | + <strong>{{ t('libresign', 'Valid to:') }}</strong> |
| 361 | + {{ cert.validTo_time_t ? new Date(cert.validTo_time_t * 1000).toLocaleString() : t('libresign', 'Unknown') }} |
| 362 | + </small> |
| 363 | + </template> |
| 364 | + </NcListItem> |
| 365 | + </div> |
276 | 366 | </div> |
277 | 367 | <NcListItem v-if="signer.opened && signer.subject" |
278 | 368 | class="extra" |
@@ -581,6 +671,7 @@ export default { |
581 | 671 | this.hasInfo = !this.hasInfo |
582 | 672 | this.uuidToValidate = this.$route.params.uuid |
583 | 673 | }, |
| 674 | +
|
584 | 675 | }, |
585 | 676 | } |
586 | 677 | </script> |
|
0 commit comments