Skip to main content

Cert-Blitz

PyPI version License: MIT Downloads LinkedIn

Cert-Blitz is a Python package that decodes and analyzes digital certificates and TLS server configurations from text input. It extracts and validates structured information like issuer, subject, validity dates, and encryption algorithms, providing clear, formatted outputs that highlight key certificate properties, expiration warnings, and potential security issues.

Installation

pip install cert_blitz

Usage

Basic Usage

from cert_blitz import cert_blitz

user_input = """
-----BEGIN CERTIFICATE-----
MIIDXTCCAkWgAwIBAgIJAL8...
-----END CERTIFICATE-----
"""

response = cert_blitz(user_input)
print(response)

Using a Custom LLM

You can use any LLM compatible with LangChain. Here are examples using different LLMs:

Using OpenAI

from langchain_openai import ChatOpenAI
from cert_blitz import cert_blitz

llm = ChatOpenAI()
response = cert_blitz(user_input, llm=llm)
print(response)

Using Anthropic

from langchain_anthropic import ChatAnthropic
from cert_blitz import cert_blitz

llm = ChatAnthropic()
response = cert_blitz(user_input, llm=llm)
print(response)

Using Google

from langchain_google_genai import ChatGoogleGenerativeAI
from cert_blitz import cert_blitz

llm = ChatGoogleGenerativeAI()
response = cert_blitz(user_input, llm=llm)
print(response)

Using LLM7 API Key

By default, Cert-Blitz uses the LLM7 API. You can pass your API key directly or via an environment variable.

Passing API Key Directly

from cert_blitz import cert_blitz

response = cert_blitz(user_input, api_key="your_api_key")
print(response)

Using Environment Variable

export LLM7_API_KEY="your_api_key"
from cert_blitz import cert_blitz

response = cert_blitz(user_input)
print(response)

Parameters

  • user_input (str): The user input text to process.
  • llm (Optional[BaseChatModel]): The LangChain LLM instance to use. If not provided, the default ChatLLM7 will be used.
  • api_key (Optional[str]): The API key for LLM7. If not provided, the environment variable LLM7_API_KEY will be used.

Default LLM

Cert-Blitz uses ChatLLM7 from langchain_llm7 by default. You can safely pass your own LLM instance if you want to use another LLM.

Rate Limits

The default rate limits for LLM7 free tier are sufficient for most use cases of this package. If you want higher rate limits, you can pass your own API key via the environment variable LLM7_API_KEY or directly via the api_key parameter. You can get a free API key by registering at LLM7.

Issues

If you encounter any issues, please report them on the GitHub issues page.

Author

Metadata

Release files for cert-blitz 2025.12.22080137

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

Source distribution (sdist)

Source distribution for cert-blitz 2025.12.22080137
File Size Uploaded
cert_blitz-2025.12.22080137.tar.gz 6.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for cert-blitz 2025.12.22080137
File Interpreter ABI Platform
cert_blitz-2025.12.22080137-py3-none-any.whl Python 3 none any Details

Total release size: 12.6 kB

Release files / cert_blitz-2025.12.22080137.tar.gz

Download URL cert_blitz-2025.12.22080137.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f7b987fed2ebfad3690c873753626996e0c86cbda8906f45db76109905141c21
BLAKE2b-256 checksum
How to use checksums
3e30869abc8f9b687245450a0a3071246c7abc70b297bb17d95a545a313d4135
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release files / cert_blitz-2025.12.22080137-py3-none-any.whl

Download URL cert_blitz-2025.12.22080137-py3-none-any.whl
Size 6.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
94055ef098a95de8cb758b02f7172c41db05c67916b5426412b3554e52333eb4
BLAKE2b-256 checksum
How to use checksums
5d0008719064de1906014ae49e4a99c81c06b53c3daab3d096f7c5d33ebfbe8c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.1

Release history Release notifications | RSS feed

This release

2025.12.22080137 This release

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