summaryrefslogtreecommitdiff
path: root/gnu/services/vpn.scm
diff options
context:
space:
mode:
authorJulien Lepiller <julien@lepiller.eu>2020-11-18 14:57:29 +0100
committerJulien Lepiller <julien@lepiller.eu>2020-11-18 15:05:41 +0100
commit5221df34149465c5bbc1a76f83cb09f8911279f5 (patch)
tree17cc9addbca67febd7eb5e91d3ccd2445d2a14a2 /gnu/services/vpn.scm
parent82df93e27c57f939c71d9bd184c70d21fa6f605f (diff)
gnu: vpn: Make ca, key and cert optional.
* gnu/services/vpn.scm (openvpn-client-configuration) (openvpn-server-configuration): Make ca, key an cert fields optional. * doc/guix.texi (VPN Services): Document the change.
Diffstat (limited to 'gnu/services/vpn.scm')
-rw-r--r--gnu/services/vpn.scm6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnu/services/vpn.scm b/gnu/services/vpn.scm
index 658d5c3e886..70f2617c7ed 100644
--- a/gnu/services/vpn.scm
+++ b/gnu/services/vpn.scm
@@ -273,16 +273,16 @@ servers.")
273 "The device type used to represent the VPN connection.") 273 "The device type used to represent the VPN connection.")
274 274
275 (ca 275 (ca
276 (string "/etc/openvpn/ca.crt") 276 (maybe-string "/etc/openvpn/ca.crt")
277 "The certificate authority to check connections against.") 277 "The certificate authority to check connections against.")
278 278
279 (cert 279 (cert
280 (string "/etc/openvpn/client.crt") 280 (maybe-string "/etc/openvpn/client.crt")
281 "The certificate of the machine the daemon is running on. It should be signed 281 "The certificate of the machine the daemon is running on. It should be signed
282by the authority given in @code{ca}.") 282by the authority given in @code{ca}.")
283 283
284 (key 284 (key
285 (string "/etc/openvpn/client.key") 285 (maybe-string "/etc/openvpn/client.key")
286 "The key of the machine the daemon is running on. It must be the key whose 286 "The key of the machine the daemon is running on. It must be the key whose
287certificate is @code{cert}.") 287certificate is @code{cert}.")
288 288