Simple Script To Create a SSL Certificate on Apache for Debian
cd /tmp && git clone https://github.com/bxlcity/SSL_Apache2.git
cd SSL_Apache2 && chmod 777 InstallSLL.sh
./InstallSLL.sh
If you are error when you restart service Apache2 maybe vmware use port 443 find port and kill
netstat -plan | grep :443
kill ...
Tested on Kali & Parrot & vagrant 'hashicorp/precise64'