Skip to content

Commit

Permalink
fix: type must be an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
mouday committed Jul 22, 2024
1 parent 1d055f1 commit 5c06d2f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion domain_admin/utils/acme_util/acme_v2_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,8 @@ def get_account_data_filename(directory_type=DirectoryTypeEnum.LETS_ENCRYPT):
def new_csr_comp(domains, pkey_pem=None, key_type=KeyTypeEnum.RSA):
"""Create certificate signing request."""
if pkey_pem is None:
pkey_type = key_type_enum.get_key_type(key_type)
# fix: type must be an integer
pkey_type = key_type_enum.get_key_type(key_type) or OpenSSL.crypto.TYPE_RSA

# Create private key.
pkey = OpenSSL.crypto.PKey()
Expand Down

0 comments on commit 5c06d2f

Please sign in to comment.