[stunnel-users] stunnel 5.20 released
Michal Trojnara
Michal.Trojnara at mirt.net
Wed Jul 15 19:13:33 CEST 2015
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 15.07.2015 19:07, Saurabh Beriwal wrote:
> Actually now everything is working fine if i provide absolute path
> for stunnel.pem in configuration file but as per my requirement , i
> don't want to be dependent on absolute file path and want to
> generate it dynamically. but i am not able to understand how to do
> this.Please help.
The following example illustrates using dynamic configuration files:
#!/bin/bash
REMOTE_HOST="www.stunnel.org:443"
echo "client script connecting $REMOTE_HOST"
stunnel -fd 10 11<&0 <<EOT 10<&0 0<&11 11<&-
client=yes
connect=$REMOTE_HOST
EOT
echo "client script finished"
Mike
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQIcBAEBAgAGBQJVppS9AAoJEC78f/DUFuAUHy4QAMZ9SzUQf7TrbrWEHpKNSEhM
k0IXovZe6CjPebMcKZdmALfUUYCvGuBNsj23kf7HGUQlSx6MMsIKKj3rpQwfm0T0
SiqhVYJV+ErIDFa8tFYbygVK/qeHD/5h1wwahwIEdAc1lCLfwBog3Ad8hOwAXgmE
hjkbAhg6rf3rKSbA1IZmomqmY8zBWB5ZWICetX6AQidbXaYdLR+3WSssonTJb4/3
Igiw4KNZo+ldGDmfffJg99qxRfV/MfhcPTz5WpSrt6MyGW/Cf1zeKw++gYVx1hvC
dP+ZWOLbO4WGQWO21msUERgTtLgyog1XUr5FZiOH4V0d4tkmkIupZD5UQgZDwgLQ
dNwdYmSlLWag1Emwzw6P6yTJcfGT61KgDejvkF+7C3pCZRXLGOGvn0f48k5i3XBx
BwSsNWvt1ljq3iWuuOvQHR1lI3fFTkz3/l7pPrccBbUSzW5qf7vf3EsqIbH9gFWA
Rjta7cy6XEQ8DZlq+r+OaC/Wk6hlbxetSg4aKW5+51BodNBKDZ8kxDLMP3CgXSQx
LtbZe3xL+1S9w/B3ySp0Fid1mEGAWy36pzRF4fpqcYKBmH9+/zXYrFhWSNu/AvfH
huKDTc4DEy8RjZYGqnBTMCqZ2B7iWNB11tkwQjpXAKpNtBZt5DfNmT7Q4bitXhf5
yEKb2mHgypmP2LNJa3J9
=p0H6
-----END PGP SIGNATURE-----
More information about the stunnel-users
mailing list