We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4687025 commit 131c460Copy full SHA for 131c460
src/cryptojwt/tools/keyconv.py
@@ -99,7 +99,7 @@ def export_jwk(jwk: JWK, private: bool = False) -> bytes:
99
if passphrase:
100
enc = serialization.BestAvailableEncryption(passphrase.encode())
101
else:
102
- enc = serialization.NoEncryption
+ enc = serialization.NoEncryption()
103
serialized = jwk.priv_key.private_bytes(
104
encoding=serialization.Encoding.PEM,
105
format=serialization.PrivateFormat.PKCS8,
0 commit comments