def remove_cert(cert)
      der = cert.to_der

      query = %(DELETE FROM "tsettings" WHERE sha1 = #{blobify(sha1_from_der(der))};)
      begin
        db = SQLite3::Database.new(@db_path)
        db.execute(query)
        db.close
      rescue StandardError => e
        raise "[*] Error writing to SQLite database at #{@db_path}: #{e.message}"
      end
    end
def remove_cert(cert)
      der = cert.to_der

      query = %(DELETE FROM "tsettings" WHERE sha1 = #{blobify(sha1_from_der(der))};)
      begin
        db = SQLite3::Database.new(@db_path)
        db.execute(query)
        db.close
      rescue StandardError => e
        raise "[*] Error writing to SQLite database at #{@db_path}: #{e.message}"
      end
    end
performs uninstall based on sha1 hash provided in certfile