From ea513f465fa9d060ad9238a7574d000f142f0088 Mon Sep 17 00:00:00 2001 From: sayali Date: Tue, 29 Sep 2020 16:33:10 -0700 Subject: [PATCH] Remove bit length check from last query --- lemur/migrations/versions/c301c59688d2_.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lemur/migrations/versions/c301c59688d2_.py b/lemur/migrations/versions/c301c59688d2_.py index 3b0a86f7..669c934f 100644 --- a/lemur/migrations/versions/c301c59688d2_.py +++ b/lemur/migrations/versions/c301c59688d2_.py @@ -90,7 +90,7 @@ def update_key_type(): # Loop through all certificates that are valid today or expired in the last 30 days. for cert_id, body in conn.execute( text( - "select id, body from certificates where bits < 1024 and not_after > CURRENT_DATE - 31 and key_type is null") + "select id, body from certificates where not_after > CURRENT_DATE - 31 and key_type is null") ): try: cert_key_type = utils.get_key_type_from_certificate(body)