This shows you the differences between two versions of the page.
— |
tutorials:tls:howto-openssl-1-0 [2019/05/13 11:17] (current) shaunjstokes created |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Howto switch to OpenSSL 1.0 for TLS Connections ====== | ||
+ | ===== Debian and Ubuntu ===== | ||
+ | |||
+ | First of all you need to make and install OpenSSL 1.0.2r from source. | ||
+ | |||
+ | < | ||
+ | sudo apt install build-essential checkinstall zlib1g-dev -y | ||
+ | |||
+ | cd /usr/src | ||
+ | |||
+ | wget https:// | ||
+ | |||
+ | tar -xvzf openssl-1.0.2r.tar.gz | ||
+ | |||
+ | cd openssl-1.0.2r | ||
+ | |||
+ | ./config -d --prefix=/ | ||
+ | |||
+ | make | ||
+ | make test | ||
+ | |||
+ | make install | ||
+ | |||
+ | nano / | ||
+ | </ | ||
+ | |||
+ | Add this line and save: | ||
+ | < | ||
+ | / | ||
+ | </ | ||
+ | |||
+ | < | ||
+ | sudo ldconfig -v | ||
+ | |||
+ | mv / | ||
+ | mv / | ||
+ | |||
+ | export PATH=$PATH:/ | ||
+ | </ | ||
+ | |||
+ | Link binaries to path: | ||
+ | < | ||
+ | sudo ln -s / | ||
+ | sudo ln -s / | ||
+ | </ | ||
+ | |||
+ | Restart. | ||
+ | < | ||
+ | sudo shutdown -r now | ||
+ | </ | ||
+ | |||
+ | Check OpenSSL path, should return '/ | ||
+ | < | ||
+ | which openssl | ||
+ | </ | ||
+ | |||
+ | Check OpenSSL version, should return ' | ||
+ | < | ||
+ | openssl version | ||
+ | </ | ||
+ | |||
+ | Modify '/ | ||
+ | |||
+ | Change this: | ||
+ | < | ||
+ | ifneq ($(SSL_BUILDER), | ||
+ | DEFS += $(shell $(SSL_BUILDER) --cflags) | ||
+ | LIBS += $(shell $(SSL_BUILDER) --libs) | ||
+ | else | ||
+ | DEFS += -I$(LOCALBASE)/ | ||
+ | LIBS += -L$(LOCALBASE)/ | ||
+ | -L$(LOCALBASE)/ | ||
+ | -lssl -lcrypto | ||
+ | # NOTE: depending on the way in which libssl was compiled you might | ||
+ | # have to add -lz -lkrb5 | ||
+ | # E.g.: make TLS_HOOKS=1 TLS_EXTRA_LIBS=" | ||
+ | endif | ||
+ | </ | ||
+ | |||
+ | To this: | ||
+ | < | ||
+ | DEFS+= -I/ | ||
+ | LIBS+= -L/ | ||
+ | -lssl -lcrypto | ||
+ | </ | ||
+ | |||
+ | Make clean, make and make install: | ||
+ | < | ||
+ | cd / | ||
+ | make clean | ||
+ | make | ||
+ | make install | ||
+ | </ |