dot

packages and services management
Log | Files | Refs | README

commit aa719b6f60d8640ebd73c9dd03a5c0d81ba93e00
parent 987373c659a8906566917a07a4f11bd3a2fd8519
Author: Josuah Demangeon <mail@josuah.net>
Date:   Sat, 21 Jul 2018 22:42:30 +0200

do not encrypt the key

Diffstat:
As6/snooze-tls-cert/data/... | 0
Ds6/snooze-tls-cert/data/pass | 1-
Ms6/snooze-tls-cert/run | 27+++++++++++----------------
As6/snooze-tls-dhparam/log/run | 2++
As6/snooze-tls-dhparam/run | 6++++++
5 files changed, 19 insertions(+), 17 deletions(-)

diff --git a/s6/snooze-tls-cert/data/... b/s6/snooze-tls-cert/data/... diff --git a/s6/snooze-tls-cert/data/pass b/s6/snooze-tls-cert/data/pass @@ -1 +0,0 @@ -long pass phro diff --git a/s6/snooze-tls-cert/run b/s6/snooze-tls-cert/run @@ -4,19 +4,14 @@ fdmove -c 2 1 s6-envdir ./env/ importas HOST HOST -snooze #-d 1 -if { openssl req - -x509 - -newkey rsa:4096 - -days 365 - -keyout ./data/key - -out ./data/pem - -sha256 - -subj /CN=${HOST} - -passout file:./data/pass -} -if { chmod 400 ./data/key } -if { chmod 444 ./data/pem } - -if { openssl dhparam -out ./data/dhp 4096 } -if { chmod 444 ./data/dhp } +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-dhparam/log/run b/s6/snooze-tls-dhparam/log/run @@ -0,0 +1,2 @@ +#!/local/bin/execlineb -P +s6-log /var/log/snooze-tls-dhparam/ diff --git a/s6/snooze-tls-dhparam/run b/s6/snooze-tls-dhparam/run @@ -0,0 +1,6 @@ +#!/local/bin/execlineb -P + +movefd -c 2 1 + +snooze -m /3 -d 1 +openssl dhparam -out ./data/dhp 4096