aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorW. Kosior <koszko@koszko.org>2025-03-13 10:46:21 +0100
committerW. Kosior <koszko@koszko.org>2025-03-13 10:46:21 +0100
commit074ec7c48f908132bd7e0e254159e7b298248543 (patch)
treeddee8ed17d55eb308fd643fb5736d69be09f3f49
parentb0f45d21b84f7befd1f4e0bfaae42a04f43381df (diff)
downloadkoszko-org-guix-server-074ec7c48f908132bd7e0e254159e7b298248543.tar.gz
koszko-org-guix-server-074ec7c48f908132bd7e0e254159e7b298248543.zip
Correct the certs/key generation for OpenVPN.
-rw-r--r--salamina.scm8
1 files changed, 4 insertions, 4 deletions
diff --git a/salamina.scm b/salamina.scm
index 70785e3..59cf965 100644
--- a/salamina.scm
+++ b/salamina.scm
@@ -844,7 +844,7 @@ view:addr('0.0.0.0/0', policy.all(policy.DENY))
(umask initial-umask)))
(with-directory-excursion "/etc/openvpn"
- (unless (and-map file-exists? '("ca.crt" "server.crt" "server.key"))
+ (unless (and-map file-exists? '("server.crt" "server.key"))
(with-output-to-file "x509.ext"
(lambda ()
(display "\
@@ -876,10 +876,10 @@ authorityKeyIdentifier = keyid,issuer:always
(invoke/quiet
openssl "x509" "-req" "-sha256" "-extfile" "x509.ext"
"-extensions" "ca" "-in" "server.csr" "-signkey" "server.key"
- "-days" "10095" "-out" "server.crt")
+ "-days" "10095" "-out" "server.crt"))
- (unless (file-exists? "dh4096.pem")
- (invoke/quiet openssl "dhparam" "-out" "dh4096.pem" "4096")))))))
+ (unless (file-exists? "dh4096.pem")
+ (invoke/quiet openssl "dhparam" "-out" "dh4096.pem" "4096"))))))
(prepend %services
(service vpn:openvpn-server-service-type