Skip to content

Commit 131c460

Browse files
committed
proper no encryption
1 parent 4687025 commit 131c460

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cryptojwt/tools/keyconv.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ def export_jwk(jwk: JWK, private: bool = False) -> bytes:
9999
if passphrase:
100100
enc = serialization.BestAvailableEncryption(passphrase.encode())
101101
else:
102-
enc = serialization.NoEncryption
102+
enc = serialization.NoEncryption()
103103
serialized = jwk.priv_key.private_bytes(
104104
encoding=serialization.Encoding.PEM,
105105
format=serialization.PrivateFormat.PKCS8,

0 commit comments

Comments
 (0)