Exemple #1
0
 def on_SSLCertificateUpdate(self, message):
     ssl_cert_id = message.body['id']
     private_key = message.private_key
     certificate = message.certificate
     cacertificate = message.cacertificate
     update_ssl_certificate(ssl_cert_id, certificate, private_key,
                            cacertificate)
     self.api._reload_service()
Exemple #2
0
 def on_SSLCertificateUpdate(self, message):
     ssl_cert_id = message.body['id']
     private_key = message.private_key
     certificate = message.certificate
     cacertificate = message.cacertificate
     update_ssl_certificate(ssl_cert_id,
                            certificate,
                            private_key,
                            cacertificate)
     self.api._reload_service()
Exemple #3
0
    def on_VhostReconfigure(self, message):
        if not self._get_nginx_v2_mode_flag():
            self._logger.debug('updating certificates')
            cert, key, cacert = self._queryenv.get_https_certificate()
            update_ssl_certificate('', cert, key, cacert)

            self._logger.debug('before vhost reconf backend table is %s' % self.api.backend_table)
            roles_for_proxy = []
            if __nginx__['upstream_app_role']:
                roles_for_proxy = [__nginx__['upstream_app_role']]
            else:
                roles_for_proxy = get_all_app_roles()
            self.api.make_default_proxy(roles_for_proxy)
            self._logger.debug('after vhost reconf backend table is %s' % self.api.backend_table)