I am using the following which works well:
Code:
#build custom /opt/openssl
cd /usr/local/src/
wget MYCUSTOMURL/openssl-1.0.1t.tar.gz (can't wget from https://www.openssl.org/source/openssl-1.0.1t.tar.gz due to TLSv1.2 being required)
tar -zxf openssl-1.0.1t.tar.gz
cd openssl-1.0.1t
./config shared -fPIC --prefix=/opt/openssl
make && make install
#build custom /opt/curlssl but put original in place until ready to run easyapache (I like to get it all ready ahead of running easyapache)
cd /usr/local/src/
mv /opt/curlssl.orig /opt/curlssl.orig2
wget http://curl.haxx.se/download/curl-7.45.0.tar.gz --no-check-certificate
tar -zxf curl-7.45.0.tar.gz
cd curl-7.45.0
env LDFLAGS=-R/opt/openssl/lib CPPFLAGS=-I/opt/openssl/include ./configure --prefix=/opt/curlssl --with-ssl=/opt/openssl --enable-http --enable-ftp
make
mv /opt/curlssl /opt/curlssl.orig.`date +%F`
make install
mv /opt/curlssl /opt/curlssl.new
mv /opt/curlssl.orig.`date +%F` /opt/curlssl
Code:
#make new /opt/curlssl active for easyapache and run it
mv /opt/curlssl /opt/curlssl.orig.`date +%F`
mv /opt/curlssl.new /opt/curlssl
LDFLAGS="-L/opt/openssl/lib" CPPFLAGS="-I/opt/openssl/include" nice -n 18 /scripts/easyapache --build