From fb3cc9787652312ac452372d3a8e8efb893c4a0f Mon Sep 17 00:00:00 2001 From: Ted Trask Date: Mon, 2 Feb 2015 22:29:46 -0500 Subject: Added getcachain action to show the parent CAs when we are in a child, modified all views to display it This includes adding a generic HTML view to display cadir and then display the cfe --- openssl-controller.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'openssl-controller.lua') diff --git a/openssl-controller.lua b/openssl-controller.lua index 25805bf..5c72c95 100644 --- a/openssl-controller.lua +++ b/openssl-controller.lua @@ -8,7 +8,7 @@ local sslstatus mymodule.mvc={} mymodule.mvc.pre_exec = function(self) sslstatus = self.model.getstatus(self, self.clientdata) - if not self.redirect then + if not self.redirect or self.conf.component == true then return end if (sslstatus.value.version.errtxt and self.conf.action ~= "status") @@ -122,4 +122,8 @@ mymodule.checkenvironment = function(self) return self.handle_form(self, self.model.getenvironment, self.model.setenvironment, self.clientdata, "Configure", "Configure Environment", "Environment Configured") end +mymodule.getcachain = function(self) + return self.model.get_ca_chain(self, self.clientdata) +end + return mymodule -- cgit v1.2.3