(cert_ref, **kwargs)
Deletes the specified cert.

        :param cert_ref: the UUID of the cert to delete

        :raises CertificateStorageException: if certificate deletion fails
Deletes the specified cert.
Deletes the specified cert .
def delete_cert(cert_ref, **kwargs):
        """Deletes the specified cert.

        :param cert_ref: the UUID of the cert to delete

        :raises CertificateStorageException: if certificate deletion fails
        """
        LOG.warning(
            "Deleting certificate %s from the local filesystem. "
            "CertManager type 'local' should be used for testing purpose.",
            cert_ref)

        filename_base = os.path.join(CONF.certificates.storage_path, cert_ref)

        filename_certificate = "{0}.crt".format(filename_base)
        filename_private_key = "{0}.key".format(filename_base)
        filename_intermediates = "{0}.int".format(filename_base)
        filename_pkp = "{0}.pass".format(filename_base)

        try:
            os.remove(filename_certificate)
            os.remove(filename_private_key)
            if path.isfile(filename_intermediates):
                os.remove(filename_intermediates)
            if path.isfile(filename_pkp):
                os.remove(filename_pkp)
        except IOError as ioe:
            LOG.error("Failed to delete certificate %s.", cert_ref)
            raise exception.CertificateStorageException(msg=str(ioe))
def delete_cert ( cert_ref , * * kwargs ) : LOG . warning ( "Deleting certificate %s from the local filesystem. " "CertManager type 'local' should be used for testing purpose." , cert_ref ) filename_base = os . path . join ( CONF . certificates . storage_path , cert_ref ) filename_certificate = "{0}.crt" . format ( filename_base ) filename_private_key = "{0}.key" . format ( filename_base ) filename_intermediates = "{0}.int" . format ( filename_base ) filename_pkp = "{0}.pass" . format ( filename_base ) try : os . remove ( filename_certificate ) os . remove ( filename_private_key ) if path . isfile ( filename_intermediates ) : os . remove ( filename_intermediates ) if path . isfile ( filename_pkp ) : os . remove ( filename_pkp ) except IOError as ioe : LOG . error ( "Failed to delete certificate %s." , cert_ref ) raise exception . CertificateStorageException ( msg = str ( ioe ) )