summaryrefslogtreecommitdiffstats
path: root/modules-available/webinterface/templates/https.html
blob: 365e2fee5889ec1663402d6e22d1e19637a15bbf (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
<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_httpsDescription}}</p>
			{{^httpsUsed}}
			{{lang_youreNotUsingHttps}}
			{{/httpsUsed}}
			{{#httpsUsed}}
			{{lang_youreUsingHttps}}
			{{/httpsUsed}}
			<div class="text-info slx-bold">
				{{#offSelected}}
				<p>{{lang_offSelected}}</p>
				{{/offSelected}}
				{{#unknownSelected}}
				<p>{{lang_unknownSelected}}</p>
				{{/unknownSelected}}
				{{#generatedSelected}}
				<p>{{lang_generatedSelected}}</p>
				{{/generatedSelected}}
				{{#suppliedSelected}}
				<p>{{lang_suppliedSelected}}</p>
				{{/suppliedSelected}}
			</div>
			{{#httpsEnabled}}
			<div class="input-group" onclick="$('#moff').prop('checked', true);
					$('#wcustom').hide()">
				<span class="input-group-addon">
					<div class="radio" style="margin: 0; line-height: normal; text-align: left">
						<input id="moff" type="radio" name="mode" value="off">
						<label style="padding: 0"></label>
					</div>
				</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">
					<div class="radio" style="margin: 0; line-height: normal; text-align: left">
						<input id="mrandom" type="radio" name="mode" value="random">
						<label style="padding: 0"></label>
					</div>
				</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">
					<div class="radio" style="margin: 0; line-height: normal; text-align: left">
						<input id="mcustom" type="radio" name="mode" value="custom">
						<label style="padding: 0"></label>
					</div>
				</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>

			<br>
			<div class="input-group">
				<span class="input-group-addon">
					<div class="checkbox" style="margin: 0; line-height: normal; text-align: left">
						<input id="httpsredirect" type="checkbox" name="httpsredirect" value="on" {{redirect_checked}}>
						<label style="padding: 0"></label>
					</div>
				</span>
				<span class="form-control" onclick="$('#httpsredirect').prop('checked', !$('#httpsredirect').prop('checked'))">
					{{lang_httpsRedirect}}
				</span>
			</div>
			<div class="input-group">
				<span class="input-group-addon">
					<div class="checkbox" style="margin: 0; line-height: normal; text-align: left">
						<input id="usehsts" type="checkbox" name="usehsts" value="on" {{hsts_checked}}>
						<label style="padding: 0"></label>
					</div>
				</span>
				<span class="form-control" onclick="$('#usehsts').prop('checked', !$('#usehsts').prop('checked'))">
					{{lang_useHsts}}
				</span>
			</div>
			<br>

			<div class="pull-right">
				<button type="submit" class="btn btn-primary"><span class="glyphicon glyphicon-floppy-disk"></span> {{lang_save}}</button>
			</div>
		</div>
	</div>
</form>