Example:
Host%
ls -l
total 40
-rw-r--r--
1 janedoe eng12
1659 Jun 13 10:18 cert.pem
-rw-r--r--
1 janedoe eng12
115 Jun 13 10:17 hello
-rw-r--r--
1 janedoe eng12
1876 Jun 13 10:16 hello.pk7
-rw-r--r--
1 janedoe eng12
1679 Jun 12 14:55 privkey.pem
-rw-r--r--
1 janedoe eng12
451 Jun 12 14:57 pubkey.pem
The hello file contains the content detached from the signed Tcl file hello.pk7 by running the
openssl smime
command
with the
-verify
keyword. If the verification was successful, the signer
’
s certificates are written to the X.509 certificate
in the cert.pem file.
Converting the Signature into Nonbinary Data
Perform this task to convert the signature from binary to nonbinary data.
SUMMARY STEPS
1.
xxd -ps signed-tcl-file > nonbinary-signature-file
2.
Create a script that displays
#Cisco Tcl Signature V1.0
in the first line andinserts a comment character
(#) at the beginning of each line of the input file and writes each line to a file whose name is formed by
appending the text string
“
_sig
”
to the name of the input file.
3.
Run the script, supplying the name of the file containing the nonbinary signature file
(
nonbinary-signature-file
) as the input argument.
4.
ls -l
5.
cat signed-tcl-file commented-nonbinary-signature-file > signed-tcl-script
6.
cat signed-tcl-script
DETAILED STEPS
Step 1
xxd -ps signed-tcl-file > nonbinary-signature-file
This command converts the signature in
signed-tcl-file
from binary to nonbinary data and stores it as a hexadecimal
dump in the file
nonbinary-signature-file
.
Example:
Host%
xxd -ps hello.pk7 > hello.hex
Step 2
Create a script that displays
#Cisco Tcl Signature V1.0
in the first line andinserts a comment character (#) at the beginning
of each line of the input file and writes each line to a file whose name is formed by appending the text string
“
_sig
”
to
the name of the input file.
In this example the
cat
command is used to display the contents of the script file named my_append.
Consolidated Platform Configuration Guide, Cisco IOS Release 15.2(4)E (Catalyst 2960-X Switches)
1832
How to Configure Signed Tcl Scripts
Summary of Contents for Catalyst 2960 Series
Page 96: ......
Page 196: ......
Page 250: ......
Page 292: ......
Page 488: ......
Page 589: ...P A R T VI Cisco Flexible NetFlow Configuring NetFlow Lite page 509 ...
Page 590: ......
Page 619: ...P A R T VII QoS Configuring QoS page 539 Configuring Auto QoS page 645 ...
Page 620: ......
Page 750: ......
Page 1604: ......
Page 1740: ......
Page 2105: ...P A R T XII Configuring Cisco IOS IP SLAs Configuring Cisco IP SLAs page 2025 ...
Page 2106: ......
Page 2118: ......
Page 2164: ......