diff options
author | Ted Trask <ttrask01@yahoo.com> | 2015-02-02 16:16:46 -0500 |
---|---|---|
committer | Ted Trask <ttrask01@yahoo.com> | 2015-02-02 16:17:27 -0500 |
commit | 7fa6abdb25ee1ea7dda9b3771d139788c120940f (patch) | |
tree | 7b05e633e96654ce19c2381e6e8f3dafce96efcc /openssl-status-html.lsp | |
parent | 2238876a4b10036a82ce3cd3e8c9c759651047e8 (diff) | |
download | acf-openssl-7fa6abdb25ee1ea7dda9b3771d139788c120940f.tar.bz2 acf-openssl-7fa6abdb25ee1ea7dda9b3771d139788c120940f.tar.xz |
Change basedir to cadir and restrict to within /etc/ssl/
Diffstat (limited to 'openssl-status-html.lsp')
-rw-r--r-- | openssl-status-html.lsp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/openssl-status-html.lsp b/openssl-status-html.lsp index 1cd35c6..07c1646 100644 --- a/openssl-status-html.lsp +++ b/openssl-status-html.lsp @@ -25,7 +25,7 @@ htmlviewfunctions.displayitem(view.value.cakey) 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", {basedir=view.value.basedir.value}) + viewlibrary.dispatch_component("checkenvironment", {cadir=view.value.cadir.value}) end elseif not view.value.cacert.errtxt and not view.value.cakey.errtxt then htmlviewfunctions.displaysectionstart(view.value.cacertcontents, page_info, header_level) @@ -33,10 +33,10 @@ if not view.value.version.errtxt and not view.value.conffile.errtxt then htmlviewfunctions.displaysectionend(header_level) elseif viewlibrary and viewlibrary.dispatch_component then if viewlibrary.check_permission("putcacert") then - viewlibrary.dispatch_component("putcacert", {basedir=view.value.basedir.value}) + viewlibrary.dispatch_component("putcacert", {cadir=view.value.cadir.value}) end if viewlibrary.check_permission("generatecacert") then - viewlibrary.dispatch_component("generatecacert", {basedir=view.value.basedir.value}) + viewlibrary.dispatch_component("generatecacert", {cadir=view.value.cadir.value}) end end end @@ -45,10 +45,10 @@ end <% if not view.value.cacert.errtxt and viewlibrary.check_permission("downloadcacert") then local viewtype = cfe({type="hidden", value="stream"}) - local basedir = cfe({type="hidden", value=view.value.basedir.value}) + local cadir = cfe({type="hidden", value=view.value.cadir.value}) htmlviewfunctions.displaysectionstart(cfe({label="Download CA Cert"}), page_info, header_level) - htmlviewfunctions.displayitem(cfe({type="link", value={certtype=cfe({type="hidden", value="PEM"}), viewtype=viewtype, basedir=basedir}, label="", option="Download PEM", action="downloadcacert"}), page_info, -1) - htmlviewfunctions.displayitem(cfe({type="link", value={certtype=cfe({type="hidden", value="DER"}), viewtype=viewtype, basedir=basedir}, label="", option="Download DER", action="downloadcacert"}), page_info, -1) + htmlviewfunctions.displayitem(cfe({type="link", value={certtype=cfe({type="hidden", value="PEM"}), viewtype=viewtype, cadir=cadir}, label="", option="Download PEM", action="downloadcacert"}), page_info, -1) + htmlviewfunctions.displayitem(cfe({type="link", value={certtype=cfe({type="hidden", value="DER"}), viewtype=viewtype, cadir=cadir}, label="", option="Download DER", action="downloadcacert"}), page_info, -1) htmlviewfunctions.displaysectionend(header_level) end %> |