Created
December 8, 2015 12:42
-
-
Save kmadac/c5ae152d339a9c883a33 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# creates file account_key.json for simp_le.py | |
from cryptography.hazmat.backends import default_backend | |
from cryptography.hazmat.primitives.asymmetric import rsa | |
from acme import jose | |
key=jose.JWKRSA(key=rsa.generate_private_key(public_exponent=65537, key_size=4096, backend=default_backend())) | |
with open('account_key.json', 'wb') as persist_file: | |
persist_file.write(key.json_dumps()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment