If you use the Activation Server, the recommended way to create an Activation Key is the browser based administration interface of the Activation Server.
Select Administration / Setup, Create an Activation Key.
Complete description - Create an Activation Key using Activation Server
See also
Activation Key - Intro
Create Activation Key using License Generator