From 5014aa2f455b127deaa013f327dc1cc42d0e1772 Mon Sep 17 00:00:00 2001
From: David Larsson <david.lars...@selfhosted.xyz>
Date: Sat, 1 Aug 2020 00:16:02 +0200
Subject: [bug#42544] [PATCH]: gnu: services: Make some openvpn options
optional to include in the openvpn config file.
* gnu/services/vpn.scm (openvpn-client-configuration)
(openvpn-server-configuration): Change cert and key options to type
maybe-string.
---
gnu/services/vpn.scm | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm
index 658d5c3e88..6155fd7938 100644
--- a/gnu/services/vpn.scm
+++ b/gnu/services/vpn.scm
@@ -2,6 +2,7 @@
;;; Copyright © 2017 Julien Lepiller <jul...@lepiller.eu>
;;; Copyright © 2017 Clément Lassieur <clem...@lassieur.org>
;;; Copyright © 2017 Mathieu Othacehe <m.othac...@gmail.com>
+;;; Copyright © 2020 David Larsson <david.lars...@selfhosted.xyz>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -277,12 +278,12 @@ servers.")
"The certificate authority to check connections against.")
(cert
- (string "/etc/openvpn/client.crt")
+ (maybe-string 'disabled)
"The certificate of the machine the daemon is running on. It should
be signed
by the authority given in @code{ca}.")
(key
- (string "/etc/openvpn/client.key")
+ (maybe-string 'disabled)
"The key of the machine the daemon is running on. It must be the
key whose
certificate is @code{cert}.")
--
2.18.0