Skip to main content

tls-probe

Simple utility to probe remote SSL/TLS service.

Module opens connection to specified host and port and returns information about the established socket and certificate served to client on that connection.

Also provides command line frontend (tls-probe) to dump information in human-readable format.

Installation

Use Python 3 and a virtual environment. It's recommended to use pipx for easy setup and isolation:

pipx install tls-probe

Usage

Given an address (hostname or IP address) and port, a connection to the specified service is made, a SSL/TLS socket is established, and details are returned to the caller. This includes information about the connection as well as details from the X.509 certificate, if one is served.

For example:

$ tls-probe www.letsencrypt.org 443
Connection:
version      TLSv1.3
remote_addr  162.243.166.170:443

Certificate:
issuer            CN=Let's Encrypt Authority X3,O=Let's Encrypt,C=US
subject           CN=lencr.org
serial            331089264146011497466023867100015958696279
version           v3
signature_hash    sha256
not_valid_before  2020-09-03 23:37:34
not_valid_after   2020-12-02 23:37:34

Fingerprints:
md5     a2572461046c4494e73d53d8a27ebc37
sha1    0b4843d5542903b7d7dfda1e7999e880a957087b
sha256  923455ed89054c81c6ff9d75c4185bb286ef94ea35ab1f08aeec136ad53388a2

Extensions:
subjectAltName  <SubjectAlternativeName(<GeneralNames([<DNSName(value='lencr.org')>, <DNSName(value='letsencrypt.org')>, <DNSName(value='www.lencr.org')>, <DNSName(value='www.letsencrypt.org')>])>)>

JSON data may optionally be returned.

By default, the tool validates certificates sent by the remote service and certificate validation errors are raised. This may be changed by using the -z/--no-validate option.

Full usage details are found in the --help output to the command line utility.

Metadata

Release files for tls-probe 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tls-probe 1.3.0
File Size Uploaded
tls_probe-1.3.0.tar.gz 5.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tls-probe 1.3.0
File Interpreter ABI Platform
tls_probe-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 10.6 kB

Release files / tls_probe-1.3.0.tar.gz

Download URL tls_probe-1.3.0.tar.gz
Size 5.3 kB
Tags Source
SHA-256 checksum
How to use checksums
303d9b51fe67a787750f213d929d634ebd906b7adfe4c36934a32f47bfc371b7
BLAKE2b-256 checksum
How to use checksums
96b07dca2ae8361ded8237711a960bafba0a7a5be3b2a7491b46827b2a05ade0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release files / tls_probe-1.3.0-py3-none-any.whl

Download URL tls_probe-1.3.0-py3-none-any.whl
Size 5.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
cea0aba8a18da8e0a302ee0372ee1042b4dcda471035b5717ecc3cd49639258c
BLAKE2b-256 checksum
How to use checksums
2390a6434bf75e539a7244ba3207574ee273dd79664ce97ae4cd8f46b617a0f1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release files

1.1.1

2 release files

1.1.0

2 release files

1.0.0

2 release files

0.0.3

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page