Skip to content
This repository has been archived by the owner on Feb 18, 2022. It is now read-only.

Add a verify parameter #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions manifests/tun.pp
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,14 @@
# Which SSL version you plan to enforce for this tunnel. The preferred and
# default is TLSv1.
#
# [*verify*]
# Stunnel has methods for checking certificates, which are controlled by the verify option
# 0 - request and ignore peer certificate
# 1 - verify peer certificate if present
# 2 - verify peer certificate
# 3 - verify peer with locally installed certificate
# 4 - ignore CA chain and only verify peer certificate
#
# [*chroot*]
# To protect your host the stunnel application runs inside a chrooted
# environment. You must devine the location of the processes' root
Expand Down Expand Up @@ -108,6 +116,7 @@
$accept,
$connect,
$ssl_version = 'TLSv1',
$verify = '2',
$pid_file = "/${name}.pid",
$debug_level = '0',
$log_dest = "/var/log/${name}.log",
Expand Down
2 changes: 1 addition & 1 deletion templates/stunnel.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ key = <%= @private_key %>
CAfile = <%= @ca_file %>
CRLfile = <%= @crl_file %>
sslVersion = <%= @ssl_version_real %>
verify = 2
verify = <%= @verify %>

chroot = <%= @chroot %>
setuid = <%= @user %>
Expand Down