skillfed

wassima

Access your OS root certificates with utmost ease

wassima v2.1.3 2.0M downloads/30d#3,410 on PyPI24
Permissive license MIT Active released

What it is and what it does

Wassima is a certificate store abstraction layer that reads your operating system's root CA certificates and makes them available in multiple formats (SSL context, DER, PEM, or concatenated bundle). It automatically falls back to an embedded CCADB-sourced trust store when the OS provides nothing, and supports a hybrid mode that combines both for environments like containers where the system store may be outdated or incomplete. The library caches results for performance (default 12-hour TTL) and deduplicates certificates across multiple OS store locations.

It's designed as a permissive-licensed alternative to certifi, letting you work with your actual system trust store rather than a static bundled copy. You can register additional CAs, control cache behavior, and force hybrid mode when needed. The package works out-of-the-box on any OS and supports Python 3.7+ including PyPy.

Use it for:

  • Build HTTPS clients that respect the system's certificate policy without bundling a separate CA store
  • Create SSL contexts in containers or appliances where the system trust store is slim or outdated
  • Register custom root CAs alongside system certificates for internal PKI environments
  • Generate CA bundles for tools that need PEM-format certificate files
  • Ensure certificate verification picks up OS-level CA updates without restarting the application

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

Wassima provides access to your operating system's root certificate store for SSL/TLS verification, with automatic fallback to an embedded CCADB trust store and optional hybrid mode for containers.

Yes. Wassima is actively maintained, has no dependencies, installs cleanly, carries a permissive MIT license, and solves a real problem—accessing the OS trust store without bundling a static copy. It's a solid drop-in for certifi in projects that want to respect system certificate policy. No known vulnerabilities.

Install

wassima on PyPI

pip

pip install wassima

uv

uv add wassima

poetry

poetry add wassima

Installing wassima

Before you install

Low friction: pure Python wheel with no runtime dependencies. Actively maintained with a recent release (21 days ago) and last commit on 2026-08-01. Supports Python 3.7+ and PyPy.

License in practice

MIT license (permissive) means you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install wassima

import wassima

ctx = wassima.create_default_ssl_context()
# ctx now contains your system root CAs

bundle = wassima.generate_ca_bundle()
# bundle is a string with all root CAs in PEM format

Requires Python 3.7 or later; PyPy is supported.

Verify before relying

  • Whether the embedded CCADB bundle is updated regularly and how frequently
  • Performance characteristics when hybrid_store=True on systems with large trust stores
  • Exact behavior of the 3-year staleness check on Linux/BSD systems

Package facts

License MIT (permissive)
Python support supports the current Python release (>=3.7)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance actively maintained — 21 days since the last release
Last repo commit
First released
Downloads 1,954,835/month — #3,410 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: wassima-2.1.3-py3-none-any.whl

Keywords: ca, certifi, certificate, https, root ca, ssl, tls, trust, truststore

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Programming Language :: Python :: 3.15Programming Language :: Python :: 3.7Programming Language :: Python :: 3.8Programming Language :: Python :: 3.9Programming Language :: Python :: Implementation :: CPythonProgramming Language :: Python :: Implementation :: PyPyTopic :: Internet :: WWW/HTTPTopic :: Software Development :: Libraries

Tags

os root certificates sslsystem ca store accessssl context from os trustcertifi alternativecertificate bundle generationtls certificate verificationhybrid ca store
certificate-managementssl-tlssystem-integration

More Libraries packages