diff options
author | Rob Austein <sra@hactrn.net> | 2017-07-06 22:42:23 -0400 |
---|---|---|
committer | Rob Austein <sra@hactrn.net> | 2017-07-06 22:42:23 -0400 |
commit | 3cb262f5af1b431eb1303f349dac6f28aec24d78 (patch) | |
tree | 251ee63641569364d8bd16c17c0e3a3c42e3aaba /https-server.sh | |
parent | 254bf4a64d6e3acdd47cd9e15a1e282e5fc0ec4c (diff) |
TLS example.
Diffstat (limited to 'https-server.sh')
-rwxr-xr-x | https-server.sh | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/https-server.sh b/https-server.sh new file mode 100755 index 0000000..ea105cd --- /dev/null +++ b/https-server.sh @@ -0,0 +1,27 @@ +#!/bin/sh - + +. ./environment.sh + +stunnel -fd 0 <<EOF + +engine = dynamic +engineCtrl = SO_PATH:${ENGINE_MODULE} +engineCtrl = ID:pkcs11 +engineCtrl = LIST_ADD:1 +engineCtrl = LOAD +engineCtrl = MODULE_PATH:${PKCS11_MODULE} +engineCtrl = PIN:${PKCS11_PIN} +engineCtrl = INIT + +foreground = yes +pid = + +[https] +accept = :::4443 +cert = $(pwd)/nogoodnik.cer +engineNum = 1 +key = label_boris +exec = /usr/sbin/micro-httpd +execargs = micro-httpd $(pwd) + +EOF |