1
|
<!DOCTYPE html>
|
2
|
<html lang="en">
|
3
|
<head>
|
4
|
<meta charset="UTF-8">
|
5
|
<title>X.509 Certificate Management</title>
|
6
|
<link rel="stylesheet" href="/static/css/bootstrap.min.css">
|
7
|
|
8
|
<style>
|
9
|
.w-65 {
|
10
|
max-width: 65%;
|
11
|
}
|
12
|
|
13
|
.w-35 {
|
14
|
max-width: 35%;
|
15
|
}
|
16
|
|
17
|
.caret-back::before {
|
18
|
font-family: sans-serif;
|
19
|
cursor: pointer;
|
20
|
-webkit-user-select: none; /* Safari 3.1+ */
|
21
|
-moz-user-select: none; /* Firefox 2+ */
|
22
|
-ms-user-select: none; /* IE 10+ */
|
23
|
user-select: none;
|
24
|
content: "\25B6";
|
25
|
display: inline-block;
|
26
|
margin-right: 6px;
|
27
|
-ms-transform: rotate(180deg); /* IE 9 */
|
28
|
-webkit-transform: rotate(180deg); /* Safari */'
|
29
|
transform: rotate(180deg);
|
30
|
}
|
31
|
</style>
|
32
|
</head>
|
33
|
<body class="p-4">
|
34
|
<div id="certificate-detailed-view-content" class="p-4">
|
35
|
<div>
|
36
|
<h1 class="ml-2 d-inline-block">Certificate Detailed View</h1>
|
37
|
<span class="ml-2 d-inline-block">
|
38
|
<a class="btn btn-success ml-2 mb-3" href="">Download certificate</a>
|
39
|
<a class="btn btn-warning ml-2 mb-3" href="">Revoke certificate</a>
|
40
|
<a class="btn btn-danger ml-2 mb-3" href="">Delete certificate</a>
|
41
|
</span>
|
42
|
</div>
|
43
|
<a href=""><span class="caret-back font-weight-bold">Issuing Certificate Authority</span></a>
|
44
|
<div class="row">
|
45
|
<div class="col-lg-6">
|
46
|
<table class="ml-auto mr-auto">
|
47
|
<tr>
|
48
|
<div class="form-group">
|
49
|
<td><label for="distinguished_name">Distinguished name:</label></td>
|
50
|
<td class="pl-3">
|
51
|
<input value="" type="text" id="distinguished_name" name="distinguished_name" class="form-control" disabled>
|
52
|
</td>
|
53
|
</div>
|
54
|
</tr>
|
55
|
<tr>
|
56
|
<div class="form-group">
|
57
|
<td><label for="validity_start">Validity start:</label></td>
|
58
|
<td class="pl-3">
|
59
|
<input value="" type="date" id="validity_start" name="validity_start" class="form-control" disabled>
|
60
|
</td>
|
61
|
</div>
|
62
|
</tr>
|
63
|
<tr>
|
64
|
<div class="form-group">
|
65
|
<td><label for="validity_end">Validity end:</label></td>
|
66
|
<td class="pl-3">
|
67
|
<input value="" type="date" id="validity_end" name="validity_end" class="form-control" disabled>
|
68
|
</td>
|
69
|
</div>
|
70
|
</tr>
|
71
|
<tr>
|
72
|
<td colspan="2"><h5>Subject</h5></td>
|
73
|
</tr>
|
74
|
<tr>
|
75
|
<div class="form-group">
|
76
|
<td><label for="subject_C">Country Code:</label></td>
|
77
|
<td class="pl-3">
|
78
|
<input value="" type="text" id="subject_C" name="subject_C" class="form-control" disabled>
|
79
|
</td>
|
80
|
</div>
|
81
|
</tr>
|
82
|
<tr>
|
83
|
<div class="form-group">
|
84
|
<td><label for="subject_ST">Province/State:</label></td>
|
85
|
<td class="pl-3">
|
86
|
<input value="" type="text" id="subject_ST" name="subject_ST" class="form-control" disabled>
|
87
|
</td>
|
88
|
</div>
|
89
|
</tr>
|
90
|
<tr>
|
91
|
<div class="form-group">
|
92
|
<td><label for="subject_L">Locality:</label></td>
|
93
|
<td class="pl-3">
|
94
|
<input value="" type="text" id="subject_L" name="subject_L" class="form-control" disabled>
|
95
|
</td>
|
96
|
</div>
|
97
|
</tr>
|
98
|
<tr>
|
99
|
<div class="form-group">
|
100
|
<td><label for="subject_CN">Common Name:</label></td>
|
101
|
<td class="pl-3">
|
102
|
<input value="" type="text" id="subject_CN" name="subject_CN" class="form-control" disabled>
|
103
|
</td>
|
104
|
</div>
|
105
|
</tr>
|
106
|
<tr>
|
107
|
<div class="form-group">
|
108
|
<td><label for="subject_O">Organization:</label></td>
|
109
|
<td class="pl-3">
|
110
|
<input value="" type="text" id="subject_O" name="subject_O" class="form-control" disabled>
|
111
|
</td>
|
112
|
</div>
|
113
|
</tr>
|
114
|
<tr>
|
115
|
<div class="form-group">
|
116
|
<td><label for="subject_OU">Organization Unit:</label></td>
|
117
|
<td class="pl-3">
|
118
|
<input value="" type="text" id="subject_OU" name="subject_OU" class="form-control" disabled>
|
119
|
</td>
|
120
|
</div>
|
121
|
</tr>
|
122
|
<tr>
|
123
|
<div class="form-group">
|
124
|
<td><label for="subject_emailAddress">Email Address:</label></td>
|
125
|
<td class="pl-3">
|
126
|
<input value="" type="text" id="subject_emailAddress" name="subject_emailAddress" class="form-control" disabled>
|
127
|
</td>
|
128
|
</div>
|
129
|
</tr>
|
130
|
<tr>
|
131
|
<td>Usage:</td>
|
132
|
<td class="form-check">
|
133
|
<input class="form-check-input" v-model="certificateData.usage.CA" type="checkbox" id="isCA" name="isCA" value="CA" disabled>
|
134
|
<label class="form-check-label" for="isCA">CA</label><br>
|
135
|
|
136
|
<input class="form-check-input" v-model="certificateData.usage.digitalSignature" type="checkbox" id="isDigitalSignature" name="isDigitalSignature" value="DigitalSignature" disabled>
|
137
|
<label class="form-check-label" for="isDigitalSignature">Digital Signature</label><br>
|
138
|
|
139
|
<input class="form-check-input" v-model="certificateData.usage.authentication" type="checkbox" id="isAuthentication" name="isAuthentication" value="Authentication" disabled>
|
140
|
<label class="form-check-label" for="isAuthentication">Authentication</label><br>
|
141
|
|
142
|
<input class="form-check-input" v-model="certificateData.usage.SSL" type="checkbox" id="isSSL_TLS" name="isSSL_TLS" value="SSL_TLS" disabled>
|
143
|
<label class="form-check-label" for="isSSL_TLS">SSL/TLS</label><br>
|
144
|
</td>
|
145
|
</tr>
|
146
|
</table>
|
147
|
<div class="text-center">
|
148
|
<a class="btn btn-success m-1" href="">Download Public Key</a>
|
149
|
<a class="btn btn-success m-1" href="">Download Private Key</a>
|
150
|
</div>
|
151
|
</div>
|
152
|
<div class="col-xl-6 table-responsive">
|
153
|
<table class="table table-striped table-hover">
|
154
|
<thead class="thead-dark text-center">
|
155
|
<tr>
|
156
|
<th scope="col" colspan="2">Issued Certificates</th>
|
157
|
</tr>
|
158
|
<tr>
|
159
|
<th class="w-65" scope="col">Common Name</th>
|
160
|
<th class="w-35" scope="col">Type</th>
|
161
|
</tr>
|
162
|
</thead>
|
163
|
<tbody>
|
164
|
<tr>
|
165
|
<td><some_certificate_name></td>
|
166
|
<td><type></td>
|
167
|
</tr>
|
168
|
<tr>
|
169
|
<td><some_certificate_long_name></td>
|
170
|
<td><CA></td>
|
171
|
</tr>
|
172
|
<tr>
|
173
|
<td><some _certificat e_very____________ _________l on gname></td>
|
174
|
<td><End Certificate></td>
|
175
|
</tr>
|
176
|
</tbody>
|
177
|
</table>
|
178
|
</div>
|
179
|
</div>
|
180
|
</div>
|
181
|
|
182
|
<script>
|
183
|
var toggler = document.getElementsByClassName("caret");
|
184
|
var i;
|
185
|
|
186
|
for (i = 0; i < toggler.length; i++) {
|
187
|
toggler[i].addEventListener("click", function() {
|
188
|
this.parentElement.querySelector(".nested").classList.toggle("active");
|
189
|
this.classList.toggle("caret-down");
|
190
|
});
|
191
|
}
|
192
|
</script>
|
193
|
|
194
|
<script src="/static/js/jquery-3.6.0.min.js"></script>
|
195
|
<script src="/static/js/bootstrap.bundle.min.js"></script>
|
196
|
</body>
|
197
|
</html>
|