diff options
author | mia <mia@mia.jetzt> | 2024-11-23 18:09:46 -0800 |
---|---|---|
committer | mia <mia@mia.jetzt> | 2024-11-23 18:09:46 -0800 |
commit | 9b4f0c660caf93a085f3b9428d43ead027b01d01 (patch) | |
tree | 765367cac29b53be270c483e7228da361dbc0b54 /misc/certs.py | |
parent | e6416a52c32076c7d19b0e5f6740366a814d5f31 (diff) | |
download | callosum-9b4f0c660caf93a085f3b9428d43ead027b01d01.tar.gz callosum-9b4f0c660caf93a085f3b9428d43ead027b01d01.zip |
Diffstat (limited to 'misc/certs.py')
-rw-r--r-- | misc/certs.py | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/misc/certs.py b/misc/certs.py deleted file mode 100644 index 2b3e9a1..0000000 --- a/misc/certs.py +++ /dev/null @@ -1,17 +0,0 @@ -import io -from tarfile import TarFile - -from commia.bearer import get_key, keys -from commia.prelude import * -from commia.ssh import scp, ssh_args -from commia.util import with_written - -buffer = get_key(keys.certificates.certs, decode=False) -tar = TarFile(fileobj=io.BytesIO(buffer)) -for name in tar.getnames(): - with_written( - tar.extractfile(name).read(), - lambda path: scp(path, f"callosum:/etc/tls/{name}"), - ) - -run_check(p([*ssh_args("callosum"), "systemctl", "restart", "nginx"])) |