forked from nedap/stunnel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALL.W32
46 lines (31 loc) · 1.41 KB
/
INSTALL.W32
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
stunnel Universal SSL tunnel
Building stunnel from source (optional):
1) Install mingw32 cross-compiler o a Unix/Linux machine.
In Debian all you need is:
apt-get install mingw32
Native compilation on a Windows machine is possible, but not supported.
2) Download the recent zlib from https://www.zlib.net/
Update the following definitions in win32/Makefile.gcc file:
SHARED_MODE=1
PREFIX = i586-mingw32msvc-
then build zlib with:
make -f win32/Makefile.gcc
and install it in mingw32 tree:
sudo BINARY_PATH=~/ \
INCLUDE_PATH=/usr/i586-mingw32msvc/include/ \
LIBRARY_PATH=/usr/i586-mingw32msvc/lib/ \
make -f win32/Makefile.gcc install
3) Download the recent OpenSSL in unpack it to /usr/src/ directory.
cd /usr/src && tar zvxf ~/openssl-(version).tar.gz
4) Build OpenSSL with cross_mingw32.sh script.
ftp:https://stunnel.mirt.net/stunnel/openssl/cross_mingw32.sh
5) Download and unpack stunnel-(version).tar.gz.
6) Configure stunnel.
cd stunnel-(version) && ./configure --with-ssl=/path/to/openssl-(version)
7) Build windows executable.
cd src && make stunnel.exe
Installing stunnel:
1) run installer to install precompiled binaries or copy stunnel.exe and
OpenSSL DLLs into a directory
2) read the manual (stunnel.html)
3) create/edit stunnel.conf configuration file