From 4e6494fa8a50228ed0cc7580a702df981fbb9bea Mon Sep 17 00:00:00 2001 From: Michele Cereda Date: Thu, 25 May 2023 21:41:10 +0200 Subject: [PATCH] feat: article and configuration file example about stunnel --- examples/stunnel.config | 6 +++++ knowledge base/stunnel.md | 46 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 52 insertions(+) create mode 100644 examples/stunnel.config create mode 100644 knowledge base/stunnel.md diff --git a/examples/stunnel.config b/examples/stunnel.config new file mode 100644 index 0000000..51bbb39 --- /dev/null +++ b/examples/stunnel.config @@ -0,0 +1,6 @@ +[redis-cli] +client = yes +accept = 127.0.0.1:6380 +connect = redis.lan:6380 + +; CAfile = /home/user/trusted.certs.pem diff --git a/knowledge base/stunnel.md b/knowledge base/stunnel.md new file mode 100644 index 0000000..1cc472b --- /dev/null +++ b/knowledge base/stunnel.md @@ -0,0 +1,46 @@ +# Stunnel + +Proxy designed to add TLS encryption functionality to existing clients and servers without any changes in the programs' code. + +## Table of contents + +1. [TL;DR](#tldr) +1. [Further readings](#further-readings) +1. [Sources](#sources) + +## TL;DR + +In Unix-like operating systems: + +```sh +# Install it. +brew install 'stunnel' + +# Show default socket options. +stunnel -sockets + +# Show supported TLS options. +stunnel -options + +# Start the process. +stunnel 'path/to/config/file' +``` + +## Further readings + +- [Website] +- [Sample configuration for Unix systems] + +## Sources + +All the references in the [further readings] section, plus the following: + + +[sample configuration for unix systems]: https://www.stunnel.org/config_unix.html +[website]: https://www.stunnel.org/ + + +[further readings]: #further-readings + + +