Skip to content

Commit 5234ed3

Browse files
committed
fix(dhparams): allow generating Diffie Hellman parameters on Windows
* and with paths that contain spaces
1 parent 8703eb5 commit 5234ed3

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

openvpn/defaults.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# vim: ft=yaml
33
---
44
openvpn:
5+
bin_dir: ~
56
conf_dir: /etc/openvpn
67
conf_ext: conf
78
dh_files: ['2048', '4096']

openvpn/dhparams.sls

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
{%- set dh_file = config_dir ~ "/dh" ~ dh ~ ".pem" %}
99
openvpn_create_dh_{{ dh }}:
1010
cmd.run:
11-
- name: openssl dhparam {% if map.dsaparam %}-dsaparam {% endif %}-out {{ dh_file }} {{ dh }}
11+
- name: '"{{ map.bin_dir | default('', true) }}openssl" dhparam {% if map.dsaparam %}-dsaparam {% endif %}-out "{{ dh_file }}" {{ dh }}'
1212
- creates: {{ dh_file }}
1313
- require:
1414
- pkg: openvpn_pkgs

openvpn/osfamilymap.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ FreeBSD:
2626
manage_user: false
2727
manage_group: false
2828
Windows:
29+
bin_dir: C:\Program Files\OpenVPN\bin\
2930
conf_dir: C:\Program Files\OpenVPN\config
3031
conf_ext: ovpn
3132
service: OpenVPNServiceInteractive

0 commit comments

Comments
 (0)