def installCertificates(session): certGenerator = SSLCertificateGenerator() try: certGenerator.installCertificates() except IOError, e: # Disable https config.OpenWebif.https_enabled.value = False config.OpenWebif.https_enabled.save() # Inform the user session.open(MessageBox, "Cannot install generated SSL-Certifactes for https access\nHttps access is disabled!", MessageBox.TYPE_ERROR)