Renew Expire ESXi Key
Go to your vmware license file path and open it to your linux editor, in my case it is VI editor.
# vi /etc/vmware/vmware.lic
Renew Expire vCenter Key
when your VCenter license has expired then you got the following error message.
To renew your vcenter server license. go to your vSphere web client and login using your administrator.
From home screen -> On Administration Section-> Click Licensing
In Administration-> Licensing -> in Licenses Tab-> VCenter Server Systems-> Assign License Key
As you may see in below snapshot. my key has been expired.
From Drop down -> Choose “Assign a new License Key”
Enter your License Key and enter a descriptive label -> Click “OK”
Your Key has been renewed. you can verify it as shown below.