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