From 5fbad868d5ed2e39ca355d2246c6b6502a79a94c Mon Sep 17 00:00:00 2001 From: Samer Afach Date: Wed, 10 Jan 2018 20:06:22 +0100 Subject: [PATCH] Update README.md --- README.md | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) diff --git a/README.md b/README.md index e69de29..bb8c5c3 100644 --- a/README.md +++ b/README.md @@ -0,0 +1,27 @@ +# OpenSSL auto-compiler + +### Motivation + +Tons of software still use OpenSSL 1.0.2, and the fact that different versions can't coexist in a Linux distribution is a big problem. My solution: Create a script that automatically downloads and upgrades OpenSSL 1.0.2. + +### Expected result from this script + +This script automatically checks the latest version of OpenSSL, downloads it, extracts it, compiles it and creates a soft-link with a name that you can keep using without having to rename anything. + +### Using the script + +You can use this script in two different ways: + +1. Simply call it using `python CompileOpenSSL-1.0.2-Linux.py`. This will download the latest version of OpenSSL and compile it. +2. Call `python CompileOpenSSL-1.0.2-Linux.py openssl-1.0.2x.tar.gz`, where the filename is the OpenSSL version to be compiled. + +After compilation is finished, a symbolic link with the name `openssl_build` will be created, which will link to the compiled binaries. This symbolic link will help in keeping the path unchanged when upgrading to a newer version of OpenSSL. + +### Upgrading OpenSSL + +OpenSSL is a security software. Depending on how you use it, it's recommneded that you upgrade it regularly. + +To upgrade, just run the same script again, preferably with `python CompileOpenSSL-1.0.2-Linux.py`. This will check if newer versions exist, compile them, and relink them to the same directory (`openssl_build`). + +Note: The current script will recompile OpenSSL anyway, whether a newer version exists or not. +