Skip to content

Commit 92b3989

Browse files
committed
Allow client cert and key pathnames to be specified explictly
1 parent 12a8b4e commit 92b3989

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

manifests/client.pp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
$proto = 'udp',
1111
$dev = 'tun',
1212
$ca = 'ca.crt',
13-
$cert = $name,
13+
$cert = "$name.crt",
14+
$key = "$name.key",
1415
$ns_cert_type = 'server',
1516
$verb = 3,
1617
$cipher = 'AES-192-CBC',

templates/client.conf.erb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ nobind
77
persist-key
88
persist-tun
99
ca <%= @ca %>
10-
cert <%= @cert %>.crt
11-
key <%= @cert %>.key
10+
cert <%= @cert %>
11+
key <%= @key %>
1212
<% if @tls_auth_key -%>
1313
tls-auth <%= @tls_auth_key %> 1
1414
<% end -%>

0 commit comments

Comments
 (0)