cPanel made a guide you can find it here https://forums.cpanel.net/threads/how-to-installing-ssl-from-lets-encrypt.513621/
yup great to have cpanel folks interested in Letsencrypt and love that perl script
###I used the above tutorial to write this script. Enjoy.
That’s a good tutorial, but I don’t like the part where it edits the letsencrypt-auto to use python27. Instead, I use virtualenv so letsencrypt-auto runs with its own configuration for python27. And I wrote a similar wrapper for renewing via cron. The instructions and code are here: https://github.com/mfgering/letsencrypt-lw