We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b41059f commit 613aa20Copy full SHA for 613aa20
1 file changed
src/cryptojwt/jwk/ec.py
@@ -346,3 +346,8 @@ def import_ec_key(pem_data):
346
return public_key
347
else:
348
return ValueError("Not a Elliptic Curve key")
349
+
350
351
+def import_ec_key_from_cert_file(pem_file):
352
+ with open(pem_file, "r") as cert_file:
353
+ return import_ec_key(cert_file.read())
0 commit comments