Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 355da79

Browse files
committed
Missing script
1 parent 7313fea commit 355da79

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

tools/create_jwks.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
#!/usr/bin/env python3
2+
3+
import json
4+
5+
from oidcmsg.key_jar import build_keyjar
6+
7+
KEYDEFS = [
8+
{"type": "RSA", "key": '', "use": ["sig"]},
9+
{"type": "EC", "crv": "P-256", "use": ["sig"]}
10+
]
11+
12+
_keyjar = build_keyjar(KEYDEFS)[1]
13+
14+
print(json.dumps(_keyjar.export_jwks(private=True)))
15+

0 commit comments

Comments
 (0)