Skip to main content

decodes and analyzes digital certificates and TLS server configurations from text input.

Project description

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

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

cert_blitz-2025.12.22080137.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

cert_blitz-2025.12.22080137-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file cert_blitz-2025.12.22080137.tar.gz.

File metadata

  • Download URL: cert_blitz-2025.12.22080137.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.1

File hashes

Hashes for cert_blitz-2025.12.22080137.tar.gz
Algorithm Hash digest
SHA256 f7b987fed2ebfad3690c873753626996e0c86cbda8906f45db76109905141c21
MD5 8f0f78ce5da6ffff3c9c2f6fb3f0caab
BLAKE2b-256 3e30869abc8f9b687245450a0a3071246c7abc70b297bb17d95a545a313d4135

See more details on using hashes here.

File details

Details for the file cert_blitz-2025.12.22080137-py3-none-any.whl.

File metadata

File hashes

Hashes for cert_blitz-2025.12.22080137-py3-none-any.whl
Algorithm Hash digest
SHA256 94055ef098a95de8cb758b02f7172c41db05c67916b5426412b3554e52333eb4
MD5 d60fe39c5b0c5c343fc72c40e9bf880f
BLAKE2b-256 5d0008719064de1906014ae49e4a99c81c06b53c3daab3d096f7c5d33ebfbe8c

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