Beispiel #1
0
    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']
Beispiel #2
0
    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']
Beispiel #3
0
 def __init__(self, base):
     CertificateGenerator.__init__(self, base)
     self.base = base
     self.type = base.options.type
Beispiel #4
0
	def __init__(self, base):
		CertificateGenerator.__init__(self, base)
		self.base = base
		self.type = base.options.type
Beispiel #5
0
	def certs(self):
		cert = CertificateGenerator(self.base)
		if cert.createDatabase():
			info_message('"Apache SSL Certs Protection" was successfully installed.')
Beispiel #6
0
 def certs(self):
     cert = CertificateGenerator(self.base)
     if cert.createDatabase():
         info_message(
             '"Apache SSL Certs Protection" was successfully installed.')