Changeset - 1919bf4b457a
[Not reviewed]
0 1 0
Branko Majic (branko) - 2 months ago 2024-02-23 22:49:09
branko@majic.rs
GC-45: Fix deprecation warning for elliptic curve key generation:

- Passed-in curve parameter must be an object instance, not a class.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
gimmecert/crypto.py
Show inline comments
 
@@ -89,7 +89,7 @@ class KeyGenerator:
 
            )
 
        else:
 
            private_key = cryptography.hazmat.primitives.asymmetric.ec.generate_private_key(
 
                curve=self._parameters
 
                curve=self._parameters()
 
            )
 

	
 
        return private_key
0 comments (0 inline, 0 general)