summaryrefslogtreecommitdiffstats
path: root/openssl-status-html.lsp
blob: a7633b3cc8def89118cab6ecd73a216fe65e264f (plain)
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
<% local view, viewlibrary, page_info, session = ... %>
<% require("htmlviewfunctions") %>

<% htmlviewfunctions.displaycommandresults({"checkenvironment", "putcacert", "generatecacert"}, session, true) %>
<% htmlviewfunctions.displaycommandresults({"install"}, session) %>

<H1>System Info</H1>
<DL>
<%
htmlviewfunctions.displayitem(view.value.version)
if view.value.version and view.value.version.errtxt and viewlibrary.check_permission("apk-tools/apk/install") then
%>
	<DT>Install package</DT>
	<DD><form action="<%= html.html_escape(page_info.script .. "/apk-tools/apk/install") %>" method="POST">
	<input type='hidden' name='package' value='<%= html.html_escape(view.value.version.name) %>'>
	<input class='submit' type='submit' name='submit' value='Install'></form></DD>
<% end %>
<% htmlviewfunctions.displayitem(view.value.conffile) %>
<% htmlviewfunctions.displayitem(view.value.environment) %>
<% htmlviewfunctions.displayitem(view.value.cacert) %>
<% htmlviewfunctions.displayitem(view.value.cakey) %>
</DL>

<% if not view.value.version.errtxt and not view.value.conffile.errtxt then
	if view.value.environment.errtxt then
		if viewlibrary and viewlibrary.dispatch_component and viewlibrary.check_permission("checkenvironment") then
			viewlibrary.dispatch_component("checkenvironment")
		end
	elseif not view.value.cacert.errtxt and not view.value.cakey.errtxt then %>
<H1>CA Certificate contents</H1>
<DL><pre><%= html.html_escape(view.value.cacertcontents.value) %></pre></DL>
	<% elseif viewlibrary and viewlibrary.dispatch_component then
		if viewlibrary.check_permission("putcacert") then
			viewlibrary.dispatch_component("putcacert")
		end
		if viewlibrary.check_permission("generatecacert") then
			viewlibrary.dispatch_component("generatecacert")
		end
	end
end %>
<% if viewlibrary.check_permission("downloadcacert") then %>
<H1>Download CA Cert</H1>
<DL>
<%= html.link{value="downloadcacert?certtype=pem", label="Download PEM"} %><BR>
<%= html.link{value="downloadcacert?certtype=der", label="Download DER"} %><BR>
<%= html.link{value="downloadcacert", label="Import to Firefox"} %><BR>
</DL>
<% end %>