dot

packages and services management
Log | Files | Refs | README

commit b85b16faa2deefa2fcff1d472ff434784f7ae69e
parent 15cc487035c93e623fd5b127bf769d9d6e8324e5
Author: Josuah Demangeon <mail@josuah.net>
Date:   Wed,  3 Oct 2018 00:44:05 +0200

move from services to oneshot script

no need to re-generate self-signed certificates all of the time...

Diffstat:
Abin/tls-dh | 3+++
Abin/tls-pem-key | 16++++++++++++++++
Ds6/snooze-tls-cert-log/consumer-for | 1-
Ds6/snooze-tls-cert-log/pipeline-name | 1-
Ds6/snooze-tls-cert-log/run | 2--
Ds6/snooze-tls-cert-log/type | 1-
Ds6/snooze-tls-cert-run/data/... | 0
Ds6/snooze-tls-cert-run/env/HOST | 1-
Ds6/snooze-tls-cert-run/producer-for | 1-
Ds6/snooze-tls-cert-run/run | 16----------------
Ds6/snooze-tls-cert-run/type | 1-
Ds6/snooze-tls-dhparam-log/consumer-for | 1-
Ds6/snooze-tls-dhparam-log/pipeline-name | 1-
Ds6/snooze-tls-dhparam-log/run | 2--
Ds6/snooze-tls-dhparam-log/type | 1-
Ds6/snooze-tls-dhparam-run/producer-for | 1-
Ds6/snooze-tls-dhparam-run/run | 5-----
Ds6/snooze-tls-dhparam-run/type | 1-
18 files changed, 19 insertions(+), 36 deletions(-)

diff --git a/bin/tls-dh b/bin/tls-dh @@ -0,0 +1,3 @@ +#!/usr/bin/env execlineb + +openssl dhparam -out dhparam.pem 4096 diff --git a/bin/tls-pem-key b/bin/tls-pem-key @@ -0,0 +1,16 @@ +#!/usr/bin/env execlineb + +importas domain 1 +if { test "${domain}" } +if { + openssl req + -new + -newkey rsa + -days 365 + -nodes + -x509 + -subj /CN=${domain} + -keyout "${domain}.key" + -out "${domain}.pem" +} +#if { chmod 400 data } diff --git a/s6/snooze-tls-cert-log/consumer-for b/s6/snooze-tls-cert-log/consumer-for @@ -1 +0,0 @@ -snooze-tls-cert-run diff --git a/s6/snooze-tls-cert-log/pipeline-name b/s6/snooze-tls-cert-log/pipeline-name @@ -1 +0,0 @@ -snooze-tls-cert diff --git a/s6/snooze-tls-cert-log/run b/s6/snooze-tls-cert-log/run @@ -1,2 +0,0 @@ -#!/usr/bin/env execlineb -s6-log t /var/log/snooze-tls-cert diff --git a/s6/snooze-tls-cert-log/type b/s6/snooze-tls-cert-log/type @@ -1 +0,0 @@ -longrun diff --git a/s6/snooze-tls-cert-run/data/... b/s6/snooze-tls-cert-run/data/... diff --git a/s6/snooze-tls-cert-run/env/HOST b/s6/snooze-tls-cert-run/env/HOST @@ -1 +0,0 @@ -josuah.net diff --git a/s6/snooze-tls-cert-run/producer-for b/s6/snooze-tls-cert-run/producer-for @@ -1 +0,0 @@ -snooze-tls-cert-log diff --git a/s6/snooze-tls-cert-run/run b/s6/snooze-tls-cert-run/run @@ -1,16 +0,0 @@ -#!/usr/bin/env execlineb -fdmove -c 2 1 -s6-envdir ./env/ -importas HOST HOST - -snooze -d 1 -if { chmod 400 data } -openssl req - -new - -newkey rsa - -days 365 - -nodes - -x509 - -subj /CN=josuah.net - -keyout data/key - -out data/pem diff --git a/s6/snooze-tls-cert-run/type b/s6/snooze-tls-cert-run/type @@ -1 +0,0 @@ -longrun diff --git a/s6/snooze-tls-dhparam-log/consumer-for b/s6/snooze-tls-dhparam-log/consumer-for @@ -1 +0,0 @@ -snooze-tls-dhparam-run diff --git a/s6/snooze-tls-dhparam-log/pipeline-name b/s6/snooze-tls-dhparam-log/pipeline-name @@ -1 +0,0 @@ -snooze-tls-dhparam diff --git a/s6/snooze-tls-dhparam-log/run b/s6/snooze-tls-dhparam-log/run @@ -1,2 +0,0 @@ -#!/usr/bin/env execlineb -s6-log t /var/log/snooze-tls-dhparam diff --git a/s6/snooze-tls-dhparam-log/type b/s6/snooze-tls-dhparam-log/type @@ -1 +0,0 @@ -longrun diff --git a/s6/snooze-tls-dhparam-run/producer-for b/s6/snooze-tls-dhparam-run/producer-for @@ -1 +0,0 @@ -snooze-tls-dhparam-log diff --git a/s6/snooze-tls-dhparam-run/run b/s6/snooze-tls-dhparam-run/run @@ -1,5 +0,0 @@ -#!/usr/bin/env execlineb -movefd -c 2 1 - -snooze -m /3 -d 1 -openssl dhparam -out ./data/dhp 4096 diff --git a/s6/snooze-tls-dhparam-run/type b/s6/snooze-tls-dhparam-run/type @@ -1 +0,0 @@ -longrun