aboutsummaryrefslogtreecommitdiff
path: root/https-server.sh
blob: 376f400f8f2f32c25083c043749896204b76d2bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/bin/sh -

. ./environment.sh

stunnel -fd 0 <<EOF

engine		= dynamic
engineCtrl	= SO_PATH:${ENGINE_MODULE}
engineCtrl	= ID:pkcs11
engineCtrl	= LOAD
engineCtrl	= MODULE_PATH:${PKCS11_MODULE}
engineCtrl	= PIN:${PKCS11_PIN}
engineCtrl	= INIT

foreground	= yes
pid		=

[https]
accept		= :::4443
cert		= $(pwd)/nogoodnik.cer
engineId	= pkcs11
key		= label_boris
exec		= /usr/sbin/micro-httpd
execargs	= micro-httpd $(pwd)

EOF