summaryrefslogtreecommitdiffstats
path: root/modules-available/webinterface/templates/https.html
blob: c6161cd67efd073b0bcedee1827995781ee628a1 (plain) (blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
<form action="?do=WebInterface" method="post">
	<input type="hidden" name="token" value="{{token}}">
	<input type="hidden" name="action" value="https">
	<div class="panel panel-default">
		<div class="panel-heading">{{lang_httpsSettings}}</div>
		<div class="panel-body">
			<p>{{lang_description}}</p>
			{{^httpsEnabled}}
			<p>{{lang_HttpsIsDisabled}}</p>
			{{/httpsEnabled}}
			{{#httpsEnabled}}
			<div class="input-group" onclick="$('#moff').prop('checked', true);
					$('#wcustom').hide()">
				<span class="input-group-addon"><input id="moff" type="radio" name="mode" value="off"></span>
				<span class="form-control">
					{{lang_noHttps}}
				</span>
			</div>
			{{/httpsEnabled}}
			<div class="input-group" onclick="$('#mrandom').prop('checked', true);
					$('#wcustom').hide()">
				<span class="input-group-addon"><input id="mrandom" type="radio" name="mode" value="random"></span>
				<span class="form-control">
					{{lang_randomCert}}
				</span>
			</div>
			<div class="input-group" onclick="$('#mcustom').prop('checked', true);
					$('#wcustom').show()">
				<span class="input-group-addon"><input id="mcustom" type="radio" name="mode" value="custom"></span>
				<span class="form-control">
					{{lang_customCert}}
				</span>
			</div>
			<div class="well well-sm" style="display:none" id="wcustom">
				{{lang_certificate}}
				<pre class="small">
-----BEGIN CERTIFICATE-----
MIIFfTCCA...
.....
-----END CERTIFICATE-----</pre>
				<textarea name="certificate" class="form-control small" cols="101" rows="10"></textarea>
				<hr>
				{{lang_privateKey}}
				<pre class="small">
-----BEGIN PRIVATE KEY-----
MIIFfTCCA...
.....
-----END PRIVATE KEY-----</pre>
				<textarea name="privatekey" class="form-control small" cols="101" rows="10"></textarea>
				<hr>
				{{lang_caChain}}
				<textarea name="cachain" class="form-control small" cols="101" rows="10"></textarea>
				<hr>
			</div>
			<div class="pull-right">
				<button type="submit" class="btn btn-primary">{{lang_save}}</button>
			</div>
		</div>
	</div>
</form>