blob: 606409f2ed1fa83e816bcb1a481d5aea7ff4cadb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#!/bin/bash
set -e
env
python3 -c '
from Crypto.PublicKey import RSA
from sys import argv
from os import environ, listdir
# use less keys for ci runner
count = 30 if environ.get("CI_RUNNER") == "1" else 500
files = listdir("keys")
for i in range(len(files), count):
with open(f"keys/{i}.rsa", "w+") as f:
print(f"Generating key {i+1}/{count}", flush=True)
rsa = RSA.generate(1024, e=3)
f.write(f"{rsa.e} {rsa.d} {rsa.n}")
print(f"{count} keys available.", flush=True)
'
/home/checker/.local/bin/gunicorn -c gunicorn.conf.py checker:app
|