private-key

This subcommand lets you do various actions on private keys.

Syntax

(tls-<Index>)# private-key  

Command

Description

delete

Deletes the private key.

generate ecdsa {256|384|521} password

Generates an ECDSA private key based on private key size with an optional password (passphrase) to encrypt the private key file, and generates a self-signed certificate.

generate rsa {2048} password

Generates an RSA private key based on private key size with an optional password (passphrase) to encrypt the private key file, and generates a self-signed certificate.

import {password|without-password}

Imports a private key file, with an optional passphrase. Type the private key in the console.

Command Mode

Privileged User

Example

This example deletes a private key:

(config-network)# tls 0
(tls-0)# private-key delete
Private key deleted.