Refer To APE installation in cpanel server here
1) In order for APE to work with stunnel, make sure that the stunnel version in the server should be less than 4.3. Centos and RHEL 5 will most probably have stunnel installed already. If not, install stunnel.
2) Now we need to create a conf for ape.
vi /etc/stunnel/ape.conf and add the following to it.
cert = /etc/stunnel/stunnel.pem
debug = 7
output = /etc/stunnel/stunnel.log
;disable delay DNS lookup for ‘connect’ option
delay = no
;no time to wait for close_notify!
TIMEOUTclose = 0
accept = 188.8.131.52:443
connect = 184.108.40.206:80
Create a file for stunnel log.
# touch /etc/stunnel/stunnel.log
3) Now generate a CSR and key for *.ape.divya.com
# cd /etc/stunnel
# openssl req -nodes -newkey rsa:2048 -out csr.pem -keyout stunnel.pem
The ...Read More