Skip to content

Commit cefe4c0

Browse files
committed
fix EllipticCurve key generation for python change
1 parent efdcc25 commit cefe4c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/pyhttpd/certs.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def _private_key(key_type):
3838
if not isinstance(key_type, ec.EllipticCurve) and key_type in EC_SUPPORTED:
3939
key_type = EC_SUPPORTED[key_type]
4040
return ec.generate_private_key(
41-
curve=key_type,
41+
curve=key_type(),
4242
backend=default_backend()
4343
)
4444

0 commit comments

Comments
 (0)