<?xmlversion="1.0"encoding="UTF-8"?>
<!DOCTYPE refentry PUBLIC"-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
<!ENTITY date SYSTEM "date.xml">
<!ENTITYversion SYSTEM "version.xml">
]>
<refsection>
<title>STATUS</title>
<para>This documentation is still work in progress. Please contribute to the initial review in <ulink url="https://bugzilla.mozilla.org/show_bug.cgi?id=836477">Mozilla NSS bug 836477</ulink>
</para>
</refsection>
<refsection id="description">
<title>Description</title>
<para>The SSL Debugging Tool <command>ssltap</command> is an SSL-aware command-line proxy. It watches TCP connections and displays the data going by. If a connection is SSL, the data display includes interpreted SSL records and handshaking</para>
</refsection>
<refsection id="options">
<title>Options</title>
<variablelist>
<varlistentry>
<term>-f </term>
<listitem><para>
Turn on fancy printing. Output is printed in colored HTML. Data sent from the client to the server is in blue; the server's reply is in red. When used with looping mode, the different connections are separated with horizontal lines. You can use this option to upload the output into a browser.
</para></listitem>
</varlistentry>
<varlistentry>
<term>-h </term>
<listitem><para>
Turn on hex/ASCII printing. Instead of outputting raw data, the command interprets each record as a numbered line of hex values, followed by the same data as ASCII characters. The two parts are separated by a vertical bar. Nonprinting characters are replaced by dots.
</para></listitem>
</varlistentry>
<varlistentry>
<term>-l prefix</term>
<listitem>
<para>
Turn on looping; that is, continue to accept connections rather than stopping after the first connection is complete.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-p port</term>
<listitem>
<para>Change the default rendezvous port (1924) to another port.</para>
<para>The following are well-known port numbers:</para>
<para>
* HTTP 80
</para>
<para>
* HTTPS 443
</para>
<para>
* SMTP 25
</para>
<para>
* FTP 21
</para>
<para>
* IMAP 143
</para>
<para>
* IMAPS 993 (IMAP over SSL)
</para>
<para>
* NNTP 119
</para>
<para>
* NNTPS 563 (NNTP over SSL)
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-s </term>
<listitem>
<para>
Turn on SSL parsing and decoding. The tool does not automatically detect SSL sessions. If you are intercepting an SSL connection, use this option so that the tool can detect and decode SSL structures.
</para>
<para>
If the tool detects a certificate chain, it saves the DER-encoded certificates into files in the current directory. The files are named cert.0x, where x is the sequence number of the certificate.
</para>
<para>
If the -s option is used with -h, two separate parts are printed for each record: the plain hex/ASCII output, and the parsed SSL output.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>-v </term>
<listitem><para>Print a version string for the tool.</para></listitem>
</varlistentry>
<varlistentry>
<term>-x </term>
<listitem><para>Turn on extra SSL hex dumps.</para></listitem>
</varlistentry>
</variablelist>
</refsection>
<refsection id="basic-usage">
<title>Usage and Examples</title>
<para>
You can use the SSL Debugging Tool to intercept any connection information. Although you can run the tool at its most basic by issuing the ssltap command with no options other than hostname:port, the information you get in this way is not very useful. For example, assume your development machine is called intercept. The simplest way to use the debugging tool is to execute the following command from a command shell:
</para>
<programlisting>$ ssltap www.netscape.com</programlisting>
<para>
The program waits for an incoming connection on the default port 1924. In your browser window, enter the URLhttp://intercept:1924. The browser retrieves the requested page from the server at www.netscape.com, but the page is intercepted and passed on to the browser by the debugging tool on intercept. On its way to the browser, the data is printed to the command shell from which you issued the command. Data sent from the client to the server is surrounded by the following symbols: --> [ data ] Data sent from the server to the client is surrounded by the following symbols: "left arrow"-- [ data ] The raw data stream is sent to standard output and is not interpreted in any way. This can result in peculiar effects, such as sounds, flashes, and even crashes of the command shell window. To output a basic, printable interpretation of the data, use the -h option, or, if you are looking at an SSL connection, the -s option. You will notice that the page you retrieved looks incomplete in the browser. This is because, by default, the tool closes down after the first connection is complete, so the browser is not able to load images. To make the tool
continue to accept connections, switch on looping mode with the -l option. The following examples show the output from commonly used combinations of options.
</para>
}
SSLRecord { 0: 1503000012 |..... type = 21 (alert) version = { 3,0 }
length = 18 (0x12)
< encrypted >
}
]
Server socket closed.
</programlisting>
<para>Example 2</para>
<para>
The -s option turns on SSL parsing. Because the -x option is not used in this example, undecoded values are output as raw data. The output is routed to a text file.
</para>
<programlisting>$ ssltap -s -p 444 interzone.mcom.com:443 > s.txt</programlisting>
<para>Output </para>
<programlisting>
Connected to interzone.mcom.com:443
--> [
alloclen = 63 bytes
[ssl2] ClientHelloV2 { version = {0x03, 0x00}
cipher-specs-length = 36 (0x24)
sid-length = 0 (0x00)
challenge-length = 16 (0x10)
cipher-suites = {
(0x010080) SSL2/RSA/RC4-128/MD5
(0x020080) SSL2/RSA/RC4-40/MD5
(0x030080) SSL2/RSA/RC2CBC128/MD5
(0x060040) SSL2/RSA/DES64CBC/MD5
(0x0700c0) SSL2/RSA/3DES192EDE-CBC/MD5
(0x000004) SSL3/RSA/RC4-128/MD5
(0x00ffe0) SSL3/RSA-FIPS/3DES192EDE-CBC/SHA
(0x00000a) SSL3/RSA/3DES192EDE-CBC/SHA
(0x00ffe1) SSL3/RSA-FIPS/DES64CBC/SHA
(0x000009) SSL3/RSA/DES64CBC/SHA
(0x000003) SSL3/RSA/RC4-40/MD5
}
session-id = { }
challenge = { 0x713c 0x9338 0x30e1 0xf8d6 0xb934 0x7351 0x200c 0x3fd0 }
]
>-- [
SSLRecord { type = 22 (handshake) version = { 3,0 }
length = 997 (0x3e5)
handshake { type = 2 (server_hello)
length = 70 (0x000046)
ServerHello {
server_version = {3, 0}
random = {...}
session ID = {
length = 32
contents = {..}
}
cipher_suite = (0x0003) SSL3/RSA/RC4-40/MD5
} type = 11 (certificate)
length = 709 (0x0002c5)
CertificateChain {
chainlength = 706 (0x02c2)
Certificate {
size = 703 (0x02bf)
data = { saved in file 'cert.001' }
}
} type = 12 (server_key_exchange)
length = 202 (0x0000ca) type = 14 (server_hello_done)
length = 0 (0x000000)
}
}
]
--> [
SSLRecord { type = 22 (handshake) version = { 3,0 }
length = 68 (0x44)
handshake { type = 16 (client_key_exchange)
length = 64 (0x000040)
ClientKeyExchange {
message = {...}
}
}
}
]
--> [
SSLRecord { type = 20 (change_cipher_spec) version = { 3,0 }
length = 1 (0x1)
}
SSLRecord { type = 22 (handshake) version = { 3,0 }
length = 56 (0x38)
> encrypted >
}
]
>-- [
SSLRecord { type = 20 (change_cipher_spec) version = { 3,0 }
length = 1 (0x1)
}
]
>-- [
SSLRecord { type = 22 (handshake) version = { 3,0 }
length = 56 (0x38)
> encrypted >
}
]
--> [
SSLRecord { type = 23 (application_data) version = { 3,0 }
length = 287 (0x11f)
> encrypted >
}
]
[
SSLRecord { type = 23 (application_data) version = { 3,0 }
length = 160 (0xa0)
> encrypted >
}
]
>-- [
SSLRecord { type = 23 (application_data) version = { 3,0 }
length = 223 (0xdf)
> encrypted >
}
SSLRecord { type = 21 (alert) version = { 3,0 }
length = 18 (0x12)
> encrypted >
}
]
Server socket closed.
</programlisting>
<para>Example 3</para>
<para>
In this example, the -h option turns hex/ASCII format. There is no SSL parsing or decoding. The output is routed to a text file.
</para>
<programlisting>$ ssltap -h -p 444 interzone.mcom.com:443 > h.txt</programlisting>
<para>Output </para>
<programlisting>
Connected to interzone.mcom.com:443
--> [ 0: 80400103000027000000100100800200 | .@....'......... 10: 800300800400800600400700 c0 000004 | .........@...... 20: 00 ff e0 00000a 00 ff e1 00000900000300 | ........á....... 30: 00069b fe 5b 5696491f 9f ca dd d5 ba b9 52 | ..þ[V.I.\xd9 ...º¹R 40: 6f 2d |o-
]
<-- [ 0: 16030003 e5 0200004603007f e5 0d 1b 1d | ........F....... 10: 687f 3a 7960 d5 173c 1d 9c 96 b3 88 d2 693b | h.:y`..<..³.Òi; 20: 78 e2 4b 8b a6 52124b 46 e8 c2 2014118905 | x.K.¦R.KFè. ... 30: 4d 5291 fd 93 e0 514891900896 c1 b6 7677 | MR.ý..QH.....¶vw 40: 2a f4 0008 a1 0661 a2 641f 2e 9b 0003000b | *ô..¡.a¢d...... 50: 0002 c5 0002 c2 0002 bf 308202 bb 308202 | ..Å......0...0.. 60: 24 a0 0302010202020136300d 06092a 86 | $ .......60...*. 70: 4886 f7 0d 01010405003077310b 300906 | H.÷......0w1.0.. 80: 0355040613025553312c 302a 06035504 | .U....US1,0*..U. 90: 0a 13234e 6574736361706520436f 6d 6d | ..#Netscape Comm
a0: 756e 69636174696f 6e 7320436f 72706f | unications Corpo
b0: 726174696f 6e 3111300f 060355040b 13 | ration1.0...U...
c0: 0848617264636f 726531273025060355 | .Hardcore1'0%..U
d0: 0403131e 48617264636f 726520436572 | ....Hardcore Cer
e0: 74696669636174652053657276657220 | tificate Server
f0: 4949301e 170d 39383035313630313033 | II0...9805160103
<additional data lines>
]
<additional records in same format>
Server socket closed.
</programlisting>
<para>Example 4</para>
<para>
In this example, the -s option turns on SSL parsing, and the -h option turns on hex/ASCII format.
Both formats are shown for each record. The output is routed to a text file.
</para>
<programlisting>$ ssltap -hs -p 444 interzone.mcom.com:443 > hs.txt</programlisting>
<para>Output </para>
<programlisting>
Connected to interzone.mcom.com:443
--> [ 0: 803d 0103000024000000100100800200 | .=....$......... 10: 800300800400800600400700 c0 000004 | .........@...... 20: 00 ff e0 00000a 00 ff e1 00000900000303 | ........á....... 30: 55 e6 e4 9979 c7 d7 2c 8678965d b5 cf e9 |U..yÇ\xb0 ,.x.]µÏé
alloclen = 63 bytes
[ssl2] ClientHelloV2 { version = {0x03, 0x00}
cipher-specs-length = 36 (0x24)
sid-length = 0 (0x00)
challenge-length = 16 (0x10)
cipher-suites = {
(0x010080) SSL2/RSA/RC4-128/MD5
(0x020080) SSL2/RSA/RC4-40/MD5
(0x030080) SSL2/RSA/RC2CBC128/MD5
(0x040080) SSL2/RSA/RC2CBC40/MD5
(0x060040) SSL2/RSA/DES64CBC/MD5
(0x0700c0) SSL2/RSA/3DES192EDE-CBC/MD5
(0x000004) SSL3/RSA/RC4-128/MD5
(0x00ffe0) SSL3/RSA-FIPS/3DES192EDE-CBC/SHA
(0x00000a) SSL3/RSA/3DES192EDE-CBC/SHA
(0x00ffe1) SSL3/RSA-FIPS/DES64CBC/SHA
(0x000009) SSL3/RSA/DES64CBC/SHA
(0x000003) SSL3/RSA/RC4-40/MD5
}
session-id = { }
challenge = { 0x0355 0xe6e4 0x9979 0xc7d7 0x2c86 0x7896 0x5db
0xcfe9 }
}
]
<additional records in same formats>
Server socket closed.
</programlisting>
</refsection>
<refsection id="usage-tips">
<title>Usage Tips</title>
<para>
When SSL restarts a previous session, it makes use of cached information to do a partial handshake.
If you wish to capture a full SSL handshake, restart the browser to clear the session id cache.
</para>
<para>
If you run the tool on a machine other than the SSL server to which you are trying to connect,
the browser will complain that the host name you are trying to connect to is different from the certificate.
If you are using the default BadCert callback, you can still connect through a dialog. If you are not using
the default BadCert callback, the one you supply must allow for this possibility.
</para>
</refsection>
<refsection id="seealso">
<title>See Also</title>
<para>The NSS Security Tools are also documented at <ulink url="http://www.mozilla.org/projects/security/pki/nss/tools">http://www.mozilla.org/projects/security/pki/nss/</ulink>.</para>
</refsection>
<!-- don't change -->
<refsection id="resources">
<title>Additional Resources</title>
<para>For information about NSS and other tools related to NSS (like JSS), check out the NSS project wiki at <ulink url="http://www.mozilla.org/projects/security/pki/nss/">http://www.mozilla.org/projects/security/pki/nss/</ulink>. The NSS site relates directly to NSS code changes and releases.</para>
<para>Mailing lists: https://lists.mozilla.org/listinfo/dev-tech-crypto</para>
<para>IRC: Freenode at #dogtag-pki</para>
</refsection>
<!-- fill in your name first; keep the other names for reference -->
<refsection id="authors">
<title>Authors</title>
<para>The NSS tools were written and maintained by developers with Netscape, Red Hat, Sun, Oracle, Mozilla, and Google.</para>
<para>
Authors: Elio Maldonado <emaldona@redhat.com>, Deon Lackey <dlackey@redhat.com>.
</para>
</refsection>
<!-- don't change -->
<refsection id="license">
<title>LICENSE</title>
<para>Licensed under the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.
</para>
</refsection>
</refentry>
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.14 Sekunden
(vorverarbeitet am 2026-06-07)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.