Skip to main content

SSLyze

Run Tests Downloads PyPI version Python version

SSLyze is a fast and powerful SSL/TLS scanning tool and Python library.

SSLyze can analyze the SSL/TLS configuration of a server by connecting to it, in order to ensure that it uses strong encryption settings (certificate, cipher suites, post-quantum key exchanges, etc.), and that it is not vulnerable to known TLS attacks (Heartbleed, ROBOT, etc.).

Key features

  • Focus on speed and reliability: SSLyze is a battle-tested tool that is used to reliably scan hundreds of thousands of servers every day.
  • Easy to operationalize: SSLyze can be directly run from CI/CD, in order to continuously check a server against the TLS configurations recommended by TLSRef.
  • Fully documented Python API to run scans directly from any Python application, such as a function deployed to AWS Lambda.
  • Support for scanning non-HTTP servers including SMTP, XMPP, LDAP, POP, IMAP, RDP, Postgres and FTP servers.
  • Results of a scan can easily be saved to a JSON file for later processing.
  • And much more!

Quick start

On Windows, Linux (x86 or x64) and macOS, SSLyze can be installed directly via pip:

$ pip install --upgrade pip setuptools wheel
$ pip install --upgrade sslyze
$ python -m sslyze www.yahoo.com www.google.com "[2607:f8b0:400a:807::2004]:443"

It can also be used via Docker:

$ docker run --rm -it nablac0d3/sslyze:6.1.0 www.google.com

Lastly, a pre-compiled Windows executable can be downloaded from the Releases page.

Python API Documentation

A sample script describing how to use the SSLyze's Python API is available at ./api_sample.py.

Full documentation for SSLyze's Python API is available here.

Usage as a CI/CD step

By default, SSLyze will check the server's scan results against the "intermediate" TLS configuration recommended by TLSRef, and will return a non-zero exit code if the server is not compliant.

$ python -m sslyze mozilla.com
Checking results against the TLSRef "intermediate" configuration. See https://docs.tlsref.org/server-side-tls.html for more details.

mozilla.com:443: OK - Compliant.

The TLSRef configuration to check against can be selected with --tls_config={intermediate, modern}:

$ python -m sslyze --tls_config=modern mozilla.com
Checking results against the TLSRef "modern" configuration. See https://docs.tlsref.org/server-side-tls.html for more details.

mozilla.com:443: FAILED - Not compliant.
    * certificate_types: Deployed certificate types are {'rsa'}, should have at least one of {'ecdsa'}.
    * certificate_signatures: Deployed certificate signatures are {'sha256WithRSAEncryption'}, should have at least one of {'ecdsa-with-SHA384', 'ecdsa-with-SHA512', 'ecdsa-with-SHA256'}.
    * tls_versions: TLS versions {'TLSv1.2'} are supported, but should be rejected.
    * ciphers: Cipher suites {'TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384', 'TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256', 'TLS_ECDHE_RSA_WITH_CHACHA20_POLY1305_SHA256'} are supported, but should be rejected.

Alternatively, you can check against your own custom TLS configuration by providing a JSON file that follows the TLSRef TLS configuration format:

$ python -m sslyze --custom_tls_config custom_tls_config_example.json mozilla.com
Checking results against custom TLS configuration.

mozilla.com:443: OK - Compliant.

See custom_tls_config_example.json for an example a custom TLS configuration that can be used by SSLyze.

This functionality can be used to easily run an SSLyze scan as a CI/CD step in order to ensure TLS compliance.

Development environment

To setup a development environment:

$ pip install --upgrade pip setuptools wheel
$ pip install -e . 
$ pip install -r requirements-dev.txt

The tests can then be run using:

$ invoke test

License

Copyright (c) 2026 Alban Diquet

SSLyze is made available under the terms of the GNU Affero General Public License (AGPL). See LICENSE.txt for details and exceptions.

Metadata

Release files for sslyze 7.0.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 sslyze 7.0.0
File Size Uploaded Provenance Actions
sslyze-7.0.0.tar.gz 1.0 MB Without provenance Details for sslyze-7.0.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sslyze 7.0.0
File Interpreter ABI Platform Actions
sslyze-7.0.0-py3-none-any.whl Python 3 none any Details for sslyze-7.0.0-py3-none-any.whl

Total release size: 2.1 MB

Release files / sslyze-7.0.0.tar.gz

Download URL sslyze-7.0.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
84bd14f9478fb7eedee274ac9c0488b4491439e9c16971f8f20f2c3dcec6c30f
BLAKE2b-256 checksum
How to use checksums
3bfd863e0b4e6e6b4559ded8d93c680984ba95884c398cf671942928513da2c9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release files / sslyze-7.0.0-py3-none-any.whl

Download URL sslyze-7.0.0-py3-none-any.whl
Size 1.0 MB
Tags Python 3
SHA-256 checksum
How to use checksums
6ebfcba494e050b252bc8ce19a59ef3fa53d166fe43b9d1ffd07a508d1e8f2d9
BLAKE2b-256 checksum
How to use checksums
d30afa7bf046cf165fc6e5a334bed79c4bb7a96f3300ff97865643a0e5cdc94d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Security for sslyze 7.0.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

7.0.0 This release

2 release files No provenance

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