def __setSslTemplate(self): if self.base.options.protection: self.base.options.ip = self.base.options.add generator = CertificateGenerator(self.base) config = {} config.update(self.base.nginx) config.update(self.base.main) config.update(generator.config.apache_cert) self.ssl_template = getTemplate('nginx-ssl-cert') % config else: self.ssl_template = 'include %s;' % self.base.nginx['ssl_conf']
def __setSslTemplate(self): if self.base.options.protection: self.base.options.ip = self.base.options.add generator = CertificateGenerator(self.base) config = {} config.update(self.base.apache2) config.update(self.base.main) config.update(generator.config.apache_cert) self.ssl_template = getTemplate('apache2-ssl-cert') % config else: self.ssl_template = "SSLEngine On\n\tSSLCertificateFile %s" %\ self.config['ssl_file']
def __init__(self, base): CertificateGenerator.__init__(self, base) self.base = base self.type = base.options.type
def certs(self): cert = CertificateGenerator(self.base) if cert.createDatabase(): info_message('"Apache SSL Certs Protection" was successfully installed.')
def certs(self): cert = CertificateGenerator(self.base) if cert.createDatabase(): info_message( '"Apache SSL Certs Protection" was successfully installed.')