Skip to content

Commit

Permalink
ssl version
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin authored and Roxane committed Jun 22, 2023
1 parent e168282 commit 6bc0a37
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ Role Variables

1. `stunnel_install_ssl_backend` (optional, default False) : determines if we want to install openssl by this role
1. `stunnel_use_certificate` (default True) : determines if we use certificates
1. `stunnel_sslversion` (optional): if you want to specify a ssl version
1. `stunnel_use_psk` (default False) : determines if we use psk
1. `stunnel_certificate_generation` (default False) : determines if this role has to generate a self signed certificate
1. `stunnel_certificate_duration` (optional, if `stunnel_certificate_generation` is True, default 365) : self signed certificate validity duration
Expand Down Expand Up @@ -69,6 +70,7 @@ Example Playbook
- name: https
accept: 443
connect: 80
stunnel_sslversion: TLSv1.2
```
you may also use [PSK (Pre Shared Keys)](https://www.stunnel.org/auth.html)
Expand Down
4 changes: 4 additions & 0 deletions templates/stunnel.conf.j2
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
pid = {{ stunnel_pid }}
output = {{ stunnel_output }}

{% if stunnel_sslversion is defined %}
sslVersion = {{ stunnel_sslversion }}
{% endif %}

{% if stunnel_use_certificate %}
cert = /etc/stunnel/stunnel.pem
{% endif -%}
Expand Down

0 comments on commit 6bc0a37

Please sign in to comment.