fixed the way the output is consumed(using tempfile now). also we have better matching of the certificates that need to be deleted(using sha1 key)