Initial Query

How do I export keys on a cisco catalyst 9400 via the cli?

LLM Generation

Query

How do I export keys on a cisco catalyst 9400 via the cli?

Output

To export keys (such as crypto keys) on a Cisco Catalyst 9400 switch via CLI, you can use these commands: For SSH/RSA keys:

1
copy nvram:ssh-rsa-key flash:
or
1
copy nvram:ssh-rsa-key tftp:
For HTTPS (SSL) certificates:
1
copy nvram:https-key-pair flash:
or
1
copy nvram:https-key-pair tftp:
If using TFTP, you'll be prompted to enter: 1. TFTP server IP address 2. Destination filename Example with TFTP:
1
2
3
Switch# copy nvram:ssh-rsa-key tftp:
Address or name of remote host []? 192.168.1.100
Destination filename [ssh-rsa-key]? switch-keys
Note: Make sure you have TFTP server access and proper security measures in place when exporting sensitive key material.

Substring Evaluation

Testing if the previous output contains the string crypto pki export: False

Initial Query

How do I export keys on a cisco catalyst 9400 via the cli?

LLM Generation

Query

How do I export keys on a cisco catalyst 9400 via the cli?

Output

To export keys (like SSH or HTTPS certificates) from a Cisco Catalyst 9400 switch via CLI, you can use the following commands depending on what type of keys you want to export: For SSH Keys:

1
copy nvram:ssh-rsa-key flash:
or
1
copy nvram:ssh-dsa-key flash:
For HTTPS (SSL) Certificates:
1
copy nvram:IOS-Self-Sig#1.cer flash:
General syntax:
1
copy source-location:filename destination-location:filename
You can then use TFTP, SCP, or other file transfer methods to copy the keys from flash to an external location: Using TFTP:
1
copy flash:keyfile tftp://server-ip/path/filename
Using SCP:
1
copy flash:keyfile scp://username@server-ip/path/filename
Remember to: 1. Verify you have proper permissions 2. Ensure the destination server is reachable 3. Handle the keys securely 4. Make sure you have enough space at the destination Note: The exact filenames may vary depending on your configuration. You can use "show flash:" to see available files.

Substring Evaluation

Testing if the previous output contains the string crypto pki export: False

Initial Query

How do I export keys on a cisco catalyst 9400 via the cli?

LLM Generation

Query

How do I export keys on a cisco catalyst 9400 via the cli?

Output

To export keys (such as SSH or HTTPS certificates) from a Cisco Catalyst 9400 switch via CLI, you can use the following commands: For SSH Keys:

1
2
copy system:running-config nvram:startup-config
copy nvram:startup-config tftp:
or
1
copy nvram:startup-config scp:
For HTTPS/SSL Certificates:
1
crypto pki export [trustpoint-name] pem terminal
or
1
crypto pki export [trustpoint-name] pem url tftp://server-address/path/filename.pem
Remember to: 1. Specify the correct TFTP/SCP server address if using those methods 2. Ensure you have network connectivity to the destination server 3. Verify you have proper permissions and space at the destination 4. Replace [trustpoint-name] with your actual trustpoint name Note: The exported configuration file will contain the encrypted keys, which can be imported back into another device if needed.

Substring Evaluation

Testing if the previous output contains the string crypto pki export: True

Initial Query

How do I export keys on a cisco catalyst 9400 via the cli?

LLM Generation

Query

How do I export keys on a cisco catalyst 9400 via the cli?

Output

To export keys (such as SSH keys or certificate keys) from a Cisco Catalyst 9400 switch via CLI, you can use the following commands depending on what type of keys you want to export: For SSH keys:

1
copy system:running-config tftp://server-ip/path/filename
or
1
show crypto key mypubkey rsa
For Certificate keys:
1
crypto pki export trustpoint-name pem terminal
or
1
crypto pki export trustpoint-name pem url tftp://server-ip/path/filename
Make sure to: 1. Have TFTP server configured and accessible 2. Verify you have proper permissions 3. Remember to replace server-ip, path, filename, and trustpoint-name with your specific values Note: Always ensure you're following your organization's security policies when exporting sensitive key material.

Substring Evaluation

Testing if the previous output contains the string crypto pki export: True

Initial Query

How do I export keys on a cisco catalyst 9400 via the cli?

LLM Generation

Query

How do I export keys on a cisco catalyst 9400 via the cli?

Output

To export keys (such as SSH or HTTPS certificates) from a Cisco Catalyst 9400 switch via CLI, you can use the following commands depending on what type of keys you want to export: For SSH Keys:

1
# show crypto key mypubkey rsa
This will display the RSA public keys. For HTTPS/SSL Certificates:
1
# show crypto pki certificates verbose
This displays detailed certificate information. To export certificates to TFTP server:
1
# copy nvram:IOS-Self-Sig#1.cer tftp://server-ip-address/filename.cer
To export the configuration with encrypted keys:
1
# copy running-config tftp://server-ip-address/filename.txt
Note: Some keys and certificates might be in a non-exportable format for security reasons. Always ensure you're following your organization's security policies when exporting sensitive security materials. Make sure you have proper backup procedures in place before manipulating any security keys or certificates.

Substring Evaluation

Testing if the previous output contains the string crypto pki export: False