parent
e3fa072608
commit
19b693f636
|
@ -87,7 +87,7 @@ def update_key_type():
|
||||||
conn = op.get_bind()
|
conn = op.get_bind()
|
||||||
start_time = time.time()
|
start_time = time.time()
|
||||||
|
|
||||||
# Loop through all certificates are valid today or expired in last 30 days
|
# Loop through all certificates that are valid today or expired in the last 30 days.
|
||||||
for cert_id, body in conn.execute(
|
for cert_id, body in conn.execute(
|
||||||
text(
|
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 bits < 1024 and not_after > CURRENT_DATE - 31 and key_type is null")
|
||||||
|
|
Loading…
Reference in New Issue