Revize 9cac7fd4
Přidáno uživatelem Jan Pašek před asi 4 roky(ů)
static/create_certificate.html | ||
---|---|---|
13 | 13 |
<div class="form-group"> |
14 | 14 |
<td><label for="CA">Certificate Authority:</label></td> |
15 | 15 |
<td class="pl-3"> |
16 |
<select v-model="selectedCA" name="CA" id="CA" class="form-control">
|
|
16 |
<select v-model="certificateData.CA" name="CA" id="CA" class="form-control">
|
|
17 | 17 |
<option value=null>Self-Signed</option> |
18 | 18 |
<option is="ca-select-item" |
19 | 19 |
v-for="ca in authorities" |
... | ... | |
26 | 26 |
<tr> |
27 | 27 |
<div class="form-group"> |
28 | 28 |
<td><label for="validity_start">Validity start:</label></td> |
29 |
<td class="pl-3"><input type="date" id="validity_start" name="validity_start" class="form-control"></td> |
|
29 |
<td class="pl-3"><input v-model="certificateData.notBefore" type="date" id="validity_start" name="validity_start" class="form-control"></td>
|
|
30 | 30 |
</div> |
31 | 31 |
</tr> |
32 | 32 |
<tr> |
33 | 33 |
<div class="form-group"> |
34 | 34 |
<td><label for="validity_end">Validity end:</label></td> |
35 |
<td class="pl-3"><input type="date" id="validity_end" name="validity_end" class="form-control"></td> |
|
35 |
<td class="pl-3"><input v-model="certificateData.notAfter" type="date" id="validity_end" name="validity_end" class="form-control"></td>
|
|
36 | 36 |
</div> |
37 | 37 |
</tr> |
38 | 38 |
<tr> |
... | ... | |
100 | 100 |
<tr> |
101 | 101 |
<div class="form-group"> |
102 | 102 |
<td><label for="subject_CN">Common Name:</label></td> |
103 |
<td class="pl-3"><input type="text" id="subject_CN" name="subject_CN" class="form-control"></td> |
|
103 |
<td class="pl-3"> |
|
104 |
<input type="text" v-model:value="certificateData.subject.CN" id="subject_CN" name="subject_CN" class="form-control"> |
|
105 |
</td> |
|
104 | 106 |
</div> |
105 | 107 |
</tr> |
106 | 108 |
<tr> |
107 | 109 |
<div class="form-group"> |
108 | 110 |
<td><label for="subject_C">Country Code:</label></td> |
109 |
<td class="pl-3"><input type="text" id="subject_C" name="subject_C" class="form-control"></td> |
|
111 |
<td class="pl-3"> |
|
112 |
<input type="text" v-model:value="certificateData.subject.C" id="subject_C" name="subject_C" class="form-control"> |
|
113 |
</td> |
|
110 | 114 |
</div> |
111 | 115 |
</tr> |
112 | 116 |
<tr> |
113 | 117 |
<div class="form-group"> |
114 | 118 |
<td><label for="subject_L">Locality:</label></td> |
115 |
<td class="pl-3"><input type="text" id="subject_L" name="subject_L" class="form-control"></td> |
|
119 |
<td class="pl-3"> |
|
120 |
<input type="text" v-model:value="certificateData.subject.L" id="subject_L" name="subject_L" class="form-control"> |
|
121 |
</td> |
|
116 | 122 |
</div> |
117 | 123 |
</tr> |
118 | 124 |
<tr> |
119 | 125 |
<div class="form-group"> |
120 | 126 |
<td><label for="subject_ST">Province/State:</label></td> |
121 |
<td class="pl-3"><input type="text" id="subject_ST" name="subject_ST" class="form-control"></td> |
|
127 |
<td class="pl-3"> |
|
128 |
<input type="text" v-model:value="certificateData.subject.ST" id="subject_ST" name="subject_ST" class="form-control"> |
|
129 |
</td> |
|
122 | 130 |
</div> |
123 | 131 |
</tr> |
124 | 132 |
<tr> |
125 | 133 |
<div class="form-group"> |
126 | 134 |
<td><label for="subject_O">Organization:</label></td> |
127 |
<td class="pl-3"><input type="text" id="subject_O" name="subject_O" class="form-control"></td> |
|
135 |
<td class="pl-3"> |
|
136 |
<input type="text" v-model:value="certificateData.subject.O" id="subject_O" name="subject_O" class="form-control"> |
|
137 |
</td> |
|
128 | 138 |
</div> |
129 | 139 |
</tr> |
130 | 140 |
<tr> |
131 | 141 |
<div class="form-group"> |
132 | 142 |
<td><label for="subject_OU">Organization Unit:</label></td> |
133 |
<td class="pl-3"><input type="text" id="subject_OU" name="subject_OU" class="form-control"></td> |
|
143 |
<td class="pl-3"> |
|
144 |
<input type="text" v-model:value="certificateData.subject.OU" id="subject_OU" name="subject_OU" class="form-control"> |
|
145 |
</td> |
|
134 | 146 |
</div> |
135 | 147 |
</tr> |
136 | 148 |
<tr> |
137 | 149 |
<div class="form-group"> |
138 | 150 |
<td><label for="subject_emailAddress">Email:</label></td> |
139 |
<td class="pl-3"><input type="email" id="subject_emailAddress" name="subject_emailAddress" class="form-control"></td> |
|
151 |
<td class="pl-3"> |
|
152 |
<input type="email" v-model:value="certificateData.subject.emailAddress" id="subject_emailAddress" name="subject_emailAddress" class="form-control"> |
|
153 |
</td> |
|
140 | 154 |
</div> |
141 | 155 |
</tr> |
142 | 156 |
<tr> |
143 | 157 |
<td>Usage:</td> |
144 | 158 |
<td class="form-check"> |
145 |
<input class="form-check-input" type="checkbox" id="isCA" name="isCA" value="CA"> |
|
159 |
<input class="form-check-input" v-model="certificateData.usage.CA" type="checkbox" id="isCA" name="isCA" value="CA">
|
|
146 | 160 |
<label class="form-check-label" for="isCA">CA</label><br> |
147 | 161 |
|
148 |
<input class="form-check-input" type="checkbox" id="isDigitalSignature" name="isDigitalSignature" value="DigitalSignature"> |
|
162 |
<input class="form-check-input" v-model="certificateData.usage.digitalSignature" type="checkbox" id="isDigitalSignature" name="isDigitalSignature" value="DigitalSignature">
|
|
149 | 163 |
<label class="form-check-label" for="isDigitalSignature">Digital Signature</label><br> |
150 | 164 |
|
151 |
<input class="form-check-input" type="checkbox" id="isAuthentication" name="isAuthentication" value="Authentication"> |
|
165 |
<input class="form-check-input" v-model="certificateData.usage.authentication" type="checkbox" id="isAuthentication" name="isAuthentication" value="Authentication">
|
|
152 | 166 |
<label class="form-check-label" for="isAuthentication">Authentication</label><br> |
153 | 167 |
|
154 |
<input class="form-check-input" type="checkbox" id="isSSL_TLS" name="isSSL_TLS" value="SSL_TLS"> |
|
168 |
<input class="form-check-input" v-model="certificateData.usage.SSL" type="checkbox" id="isSSL_TLS" name="isSSL_TLS" value="SSL_TLS">
|
|
155 | 169 |
<label class="form-check-label" for="isSSL_TLS">SSL/TLS</label><br> |
156 | 170 |
</td> |
157 | 171 |
</tr> |
Také k dispozici: Unified diff
Re #8475 - Create certificate, binding input fields