def deleteCertFilesByXID(xid, filepath): certPath = sslutils.deriveFullCertPath(filepath, xid) # delete the .crt file try: ssllog.log.main_logger.debug("Deleting " + certPath + "server.crt") sslutils.silentRemove(certPath + "server.crt") except IOError, e: ssllog.log.main_logger.error("Error %d: %s" % (e.args[0],e.args[1])) return None
def deleteCertFilesByXID(xid, filepath): certPath = sslutils.deriveFullCertPath(filepath, xid) # delete the .crt file try: ssllog.log.main_logger.debug("Deleting " + certPath + "server.crt") sslutils.silentRemove(certPath + "server.crt") except IOError, e: ssllog.log.main_logger.error("Error %d: %s" % (e.args[0],e.args[1])) return None # delete the .key file try: ssllog.log.main_logger.debug("Deleting " + certPath + "server.key") sslutils.silentRemove(certPath + "server.key") except IOError, e: ssllog.log.main_logger.error("Error %d: %s" % (e.args[0],e.args[1])) return None # delete the .pem file try: ssllog.log.main_logger.debug("Deleting " + certPath + "server.pem") sslutils.silentRemove(certPath + "server.pem") except IOError, e: ssllog.log.main_logger.error("Error %d: %s" % (e.args[0],e.args[1])) return None # delete the directory try: ssllog.log.main_logger.debug("Deleting " + certPath)