On Amazon EC2, the system hostname is changed either on boot. This can cause license errors.
On EC2 servers, you must utilize the Cloud Config system. Amazon has instructions available to set the hostname permanently.
If, after following the above steps, you continue to have issues with hostname certificates, run the following command:
# touch /usr/local/cpanel/.cloud-ready