./config --prefix=/home/USERNAME/bin/ssl --openssldir=/home/USERNAME/bin/ssl/openssl -fPIC zlib no-idea no-mdc2 no-rc5 make depend make
For -fPIC you use shared .
There is no need for --prefix , because it will use --openssldir . Thus, the configuration call will look like:
./config shared zlib no-idea no-mdc2 no-rc5 no-ssl2 no-ssl3 \ enable-ec_nistp_64_gcc_128 --openssldir=/home/USERNAME/bin/ssl/openssl
Some notes on the line:
enable-ec_nistp_64_gcc_128 is an acceleration for 64-bit platforms where GCC offers a 128-bit integer.- Usually you want
no-comp because compression can leak information - Since information about compression leaks, you usually don't want
zlib no-ssl2 completely removes SSLv2 because its insecureno-ssl3 completely removes SSLv3 because its insecure
--openssldir=/home/USERNAME/bin/ssl/openssl means:
- binaries will be located in
/home/USERNAME/bin/ssl/openssl/bin - libraries will be located in
/home/USERNAME/bin/ssl/openssl/lib - will be in
/home/USERNAME/bin/ssl/openssl/include
Then you just need to run the following. No need to make depend .
$ make $ sudo make install
If you need to clear an existing configuration and then change the configuration, follow these steps:
make clean && make dclean
make dclean is the key to make dclean .
Also see Compiling and Installing on the OpenSSL Wiki.
source share