<genkey>
The <genkey> task is essentially a shortcut to keytool -genkey—the Java tool for creating private/public key pairs and adding them to the keystore. The attributes of the task are detailed in Table 4.37.
Attributes | Description |
---|---|
Required | |
alias | The alias to use. |
dname (if dname element is not dname) | The distinguished name for the entity. |
storepass | The password for keystore integrity. |
Optional | |
keyalg | The algorithm to use when generating a name-value pair. |
keypass | The password for the private key (if different). |
keysize | An integer value corresponding to the size of the key. |
keystore | The keystore location. |
sigalg | The algorithm to be used when signing. |
storetype | The type of keystore. |
validity | An integer ... |
Get Ant Developer’s Handbook now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.