If your cPanel license gets out of sync with cPanel's server, you may have an invalid license error when you attempt to login to WHM or cPanel. To fix this, you can login to your server via ssh as root and execute the following command:
/usr/local/cpanel/cpkeyclt
The result should be:
# /usr/local/cpanel/cpkeyclt
Updating cPanel license...Done. Update succeeded.
Building global cache for cpanel...Done
If you have continued problems, please open up a support ticket at https://secure.sharktech.net/helpdesk