This function generates a DNSSEC zone key for a domain.
Note:
algo_num required | integer The algorithm that the system uses to generate the security key.
Note: We recommend that you use a Example: algo_num=13 |
domain required | string The domain for which to enable DNSSEC. Example: domain=example.com |
key_type required | string The type of security key to add.
Note: You must call these values in lowercase. Example: key_type=ksk |
active | integer Default: 1 Whether to activate the new security key.
Example: active=1 |
key_size | integer The security key size, in bits. Note: This parameter defaults to the following values, depending on the
Example: key_size=256 |
object | |
object |
whmapi1 --output=jsonpretty \ add_zone_key \ domain='example.com' \ algo_num='13' \ key_type='ksk'
{- "data": {
- "new_key_id": "1"
}, - "metadata": {
- "command": "add_zone_key",
- "reason": "OK",
- "result": 1,
- "version": 1
}
}