Skip to main content

probe specified SSL/TLS service and return information

Project description

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

Install from PyPI. Use Python 3 and a virtualenv.

mkdir -p ~/venv.d
python3 -mvenv ~/venv.d/tls_probe
~/venv.d/tls_probe/bin/pip 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 some 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/-h output to the command line utility.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tls-probe-1.1.0.tar.gz (5.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tls_probe-1.1.0-py3-none-any.whl (5.2 kB view details)

Uploaded Python 3

File details

Details for the file tls-probe-1.1.0.tar.gz.

File metadata

  • Download URL: tls-probe-1.1.0.tar.gz
  • Upload date:
  • Size: 5.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for tls-probe-1.1.0.tar.gz
Algorithm Hash digest
SHA256 6d6efe0e1dd2885e88caab05c3f907fa8daaccdbd340b0d800f364b8ea0ffd97
MD5 522ae11635c8b25f1a608158ee0ee28d
BLAKE2b-256 e2dd0d82793db3052681b03887699af9abe2fa3a57b0733dd238fba990dc5a27

See more details on using hashes here.

File details

Details for the file tls_probe-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: tls_probe-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 5.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.12

File hashes

Hashes for tls_probe-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f931febddc9b9e02b5e5d95526b66f2c86e0b6f436b5ef2f058de5ccd725e94f
MD5 3f01972142968b896456258dd3cd8fc7
BLAKE2b-256 8e401f21975d38acfb55a519a81e3672e5b388772a13d2171fd51183ee8bda7c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page