Skip to content

Howto build non root when system does not have OpenSSL

jfoug edited this page Aug 5, 2015 · 7 revisions

If a system you are using does not have OpenSSL (or the install of OpenSSL is very old), you are not root, and can not get the system admins to install OpenSSL, here is how to proceed, by installing openssl into your local directory structure.

Assumptions: This is a unix-like system. Lines with a # are 'comment' lines. Lines starting with a $ are actual commands you would enter.

# first go into your home dir
$ cd

# now make a couple of working dirs
$ mkdir ssl <br>
$ mkdir sslsrc

# now get the source (again, the proper file to download will likely be different)
$ cd sslsrc
$ wget www.openssl.org/source/openssl-1.0.2d.tar.gz
$ tar xf openssl-1.0.2d.tar.gz
$ cd openssl-1.0.2d
$ ./Configure --prefix=~/ssl linux-x86_64       (Note, if your system is not linux-x86_64, you will have to pick the right one)
$ make -sj4 build_libs      (or gmake, or whatever 'make' tool is on your system)
$ make -s test
$ make install_sw           (I like installing without using -s to 'see' what is done)

# now you should have openssl installed into your home dir, into ~/ssl

# to build john with this setup
$ cd john_source_location       (wherever you placed the JtR tree, into the ./src directory)
$ ./configure OPENSSL_CFLAGS="-I~/ssl" OPENSSL_LIBS="-L~/ssl/lib -lcrypto -lssl"
$ make -sj4

# you should now have a john, if openssl was the 'only' problem.
# once done, you can also remove the ~/sslsrc directory and all files. Once the ~/ssl is there properly, you have ssl