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

**CLI Command:**

1
copy mvpnkey
**Parameters:** * **remote://host/foldername/** - The remote server hostname or IP address and the directory path to which the files will be copied. * **access-list name** - (Optional) The name of the access list you want to apply to the encryption of the exported keys. * **labelled** - (Optional) Use this parameter to keep the label of the exported key files on the remote server. * **mvpnkey-name mvpnkey** - The name of the MVPN key that you want to export. * **start mvpnkey-name start** - The name of the first MVPN key to be exported from the series. * **end mvpnkey-name end** - The name of the last MVPN key to be exported from the series. * **file-format** - (Optional) File format to which exported keys are to be saved. The default file format is binary on the local storage device, and is PEM when copied to a remote host. * `binary` - Keys are exported in binary format. * `pem` - Keys are exported in PEM format. **Example:** To export MVPN key named "key1" and save it to a remote host:
1
copy mvpnkey remote://host/foldername/ key1
To export a series of MVPN keys starting with "key1" and ending with "key5" with PEM format:
1
copy mvpnkey file-format pem remote://host/foldername/ start key1 end key5

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
hostname# show crypto key exp-list
NAME                                     EXPIRED     LEVEL     TYPE             VALUE                                    
9c725bb15c7e0674181d85fc805caf12          no         1        AES                  06 02 C9 29 EA 53 8E B7 B3 D0 B8 01 54 37 7D    
13ad117e7ce729656bb9a854fe8e540c         yes           1         RSA              Modulus: 2048 bits
                                                               Public Exponent: 65537
                                                               Exponent: 65537
                                                               Prime 1: 2047 bits
                                                               Prime 2: 2047 bits
                                                               Public Key: 485 bits

                                                               30 82 01 DD 30 82 01 31 02 01 00 30 0D 06 09 2A 86 48 86 F7 0D 01
                                                               01 01 05 00 03 82 01 0F 30 82 01 0A 02 82 01 01 00 98 06 07 2A 86
                                                               48 CE 38 04 04 03 4C 51 60 C1 E9 AB 2F 00 03 56 2B 08 0B 27 BF 14
                                                               43 64 06 88 B2 C9 D4 4E 02 D3 86 B4 B5 04 23 28 51 78 CB 38 29 EC
                                                               44 BF 8D 7B B7 95 A3 00 A4 89 59 2F E8 87 FD 10 82 E1 73 70 EB 74
                                                               07 84 88 07 94 E8 40 DF CA F0 67 5C 61 95 D7 99 06 E4 99 51 FA 21
                                                               50 EA BE C2 6E D7 0D 2E 8A 57 67 59 E3 C0 2F 12 DC B7 35 89 D1 33
                                                               21 B6 52 EC 0B 35 97 10 7A 01 E1 B8 4E 13 19 98 9E 18 E2 FC CB E8
                                                               B5 27 31 9E 2A E1 89 44 77 C9 01 F1 AD E9 8D 19 26 80 91 5B A4 4C
                                                               8F 07 03 B2 C0 3C 6D 3E 18 2D 95 B8 D0 CB 1E AB 74 7B 6F 5C 0D B2
                                                               AD 4A F8 40 7A 93 8F DF AF BE BA 5E 69 ED B5 E2 A2 E2 FD C9 AB D7
                                                               7E CB 85 7D 05 E7 DC 19 90 E6 3E 1A 33 0D 65 5C 9D 2D CB 05 BC BF

                                                               Signature: 41 bytes
                                                               30 21 30 09 06 05 2B 0E 03 02 1A 05 00 04 14 2E 9F B4 4A FD 8E 56
                                                               04 86 37 38 46 9F D4 75 89 3A ED 8E 23 71 A8 41 F1 52 9C 52 A4 27

hostname# show crypto key exp-list file cisco.pem
NAME                                     EXPIRED     LEVEL     TYPE             VALUE                                    
9c725bb15c7e0674181d85fc805caf12          no         1        AES                  06 02 C9 29 EA 53 8E B7 B3 D0 B8 01 54 37 7D    
13ad117e7ce729656bb9a854fe8e540c         yes           1         RSA              Modulus: 2048 bits
                                                               Public Exponent: 65537
                                                               Exponent: 65537
                                                               Prime 1: 2047 bits
                                                               Prime 2: 2047 bits
                                                               Public Key: 485 bits

                                                               30 82 01 DD 30 82 01 31 02 01 00 30 0D 06 09 2A 86 48 86 F7 0D 01
                                                               01 01 05 00 03 82 01 0F 30 82 01 0A 02 82 01 01 00 98 06 07 2A 86
                                                               48 CE 38 04 04 03 4C 51 60 C1 E9 AB 2F 00 03 56 2B 08 0B 27 BF 14
                                                               43 64 06 88 B2 C9 D4 4E 02 D3 86 B4 B5 04 23 28 51 78 CB 38 29 EC
                                                               44 BF 8D 7B B7 95 A3 00 A4 89 59 2F E8 87 FD 10 82 E1 73 70 EB 74
                                                               07 84 88 07 94 E8 40 DF CA F0 67 5C 61 95 D7 99 06 E4 99 51 FA 21
                                                               50 EA BE C2 6E D7 0D 2E 8A 57 67 59 E3 C0 2F 12 DC B7 35 89 D1 33
                                                               21 B6 52 EC 0B 35 97 10 7A 01 E1 B8 4E 13 19 98 9E 18 E2 FC CB E8
                                                               B5 27 31 9E 2A E1 89 44 77 C9 01 F1 AD E9 8D 19 26 80 91 5B A4 4C
                                                               8F 07 03 B2 C0 3C 6D 3E 18 2D 95 B8 D0 CB 1E AB 74 7B 6F 5C 0D B2
                                                               AD 4A F8 40 7A 93 8F DF AF BE BA 5E 69 ED B5 E2 A2 E2 FD C9 AB D7
                                                               7E CB 85 7D 05 E7 DC 19 90 E6 3E 1A 33 0D 65 5C 9D 2D CB 05 BC BF


BEGIN CERTIFICATE
MIIDLjCCAjegAwIBAgIBAAIBAjANBgkqhkiG9w0BAQsFADASMRAwDgYDVQQDEwdDaXNjb0CA
MGLUTiBQppE+4sZgAVAJh2Hh8E1LRAAwDQYJKoZIhvcNA

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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
R1# conf term
Enter configuration commands, one per line.  End with CNTL/Z.
R1(config)# crypto key generate rsa export
Generating 2048 bit RSA key, keys will be exportable...
[OK]
R1(config)#

R1# show crypto key myrsa label
Key: myrsa
Label: My RSA Key
Size (bits): 2048
Algorithm: rsa
Usage Details:
   Config:  Key Config
 Attributes:  export

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

**Export Public Keys:**

1
show crypto key pair RSA detail | include Public key:
Copy the public key from the output. **Export Private Keys:** **Note:** Private key export requires privileged exec mode.
1
crypto key decrypt-export private-key path certificate-key-pair-name [id-only]
Where: * **path** is the path to the file to save the key to. * **certificate-key-pair-name** is the name of the certificate key pair containing the private key. * **id-only** (optional) specifies to export only the key ID instead of the full key. **Example:** Export the public and private keys for the "test-key-pair" certificate key pair:
1
2
show crypto key pair RSA detail | include Public key:
crypto key decrypt-export private-key path test-key-pair

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

Model API request failed

Substring Evaluation

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