Skip to content
Snippets Groups Projects
Commit 6c16f71a authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

Also generate an RSA key and dump Tahoe's idea of its serialization

parent dc795d44
No related branches found
No related tags found
1 merge request!5Add a Keys module with types and derivation functions
......@@ -22,3 +22,8 @@ print("readkey: ", base32.b2a(readkey))
print("datakey: ", base32.b2a(datakey))
print("encrypted private key: ", base32.b2a(encprivkey))
print("signature key hash: ", base32.b2a(fingerprint))
(priv, pub) = rsa.create_signing_keypair(2048)
priv_bytes = rsa.der_string_from_signing_key(priv)
with open("data/tahoe-lafs-generated-rsa-privkey.der", "wb") as f:
f.write(priv_bytes)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment