mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-02 16:21:32 -08:00
generate keys
This commit is contained in:
parent
686beda67a
commit
d1c4400967
1 changed files with 6 additions and 0 deletions
|
@ -53,6 +53,12 @@ def register(app):
|
|||
if os.system('pybabel compile -d app/translations'):
|
||||
raise RuntimeError('compile command failed')
|
||||
|
||||
@app.cli.command("keys")
|
||||
def keys():
|
||||
private_key, public_key = RsaKeys.generate_keypair()
|
||||
print(private_key)
|
||||
print(public_key)
|
||||
|
||||
@app.cli.command("init-db")
|
||||
def init_db():
|
||||
with app.app_context():
|
||||
|
|
Loading…
Add table
Reference in a new issue