mirror of
https://github.com/certbot/certbot.git
synced 2026-06-05 14:54:24 -04:00
min_key_size → min_keysize
This commit is contained in:
parent
90f4b4daeb
commit
06357addf0
1 changed files with 2 additions and 2 deletions
|
|
@ -14,7 +14,7 @@ import hashlib
|
|||
import blacklists
|
||||
# we can use temp() to get tempfiles to pass to OpenSSL subprocesses.
|
||||
|
||||
from CONFIG import min_key_size
|
||||
from CONFIG import min_keysize
|
||||
|
||||
forbidden_moduli = blacklists.forbidden_moduli()
|
||||
forbidden_names = blacklists.forbidden_names()
|
||||
|
|
@ -47,7 +47,7 @@ def goodkey(key):
|
|||
"""Does this public key comply with our CA policy?"""
|
||||
key = str(key)
|
||||
bits = modulusbits(key)
|
||||
if bits and bits >= min_key_size and not blacklisted(key):
|
||||
if bits and bits >= min_keysize and not blacklisted(key):
|
||||
return True
|
||||
else:
|
||||
return False
|
||||
|
|
|
|||
Loading…
Reference in a new issue