1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<script>
import { X509_CERTIFICATE_KEY_IDENTIFIER_TITLE } from '../constants';
export default {
props: {
subject: {
type: String,
required: true,
},
title: {
type: String,
required: true,
},
subjectKeyIdentifier: {
type: String,
required: true,
},
},
computed: {
subjectValues() {
return this.subject.split(',');
},
subjectKeyIdentifierToDisplay() {
return this.subjectKeyIdentifier.replaceAll(':', ' ');
},
},
i18n: {
keyIdentifierTitle: X509_CERTIFICATE_KEY_IDENTIFIER_TITLE,
},
};
</script>
<template>
<div>
<strong>{{ title }}</strong>
<ul class="gl-pl-5">
<li v-for="value in subjectValues" :key="value" data-testid="subject-value">
{{ value }}
</li>
<li data-testid="key-identifier">
{{ $options.i18n.keyIdentifierTitle }} {{ subjectKeyIdentifierToDisplay }}
</li>
</ul>
</div>
</template>
|