skillfed

wincertstore

Python module to extract CA and CRL certs from Windows' cert store (ctypes based).

wincertstore v0.2.1 395.3K downloads/30d#6,983 on PyPI1
Permissive license PSFL Abandoned released

What it is and what it does

wincertstore is a Windows-specific library that provides direct access to the operating system's certificate stores (CA and CRL) using ctypes to call the Windows crypt32.dll API. It allows you to enumerate certificates from Windows' system stores, filter them by enhanced key usage (such as SERVER_AUTH or CLIENT_AUTH), and extract them in PEM format or as a temporary certificate file for use with Python's ssl module.

The package is explicitly deprecated: since Python 2.7.9, the standard library's ssl.create_default_context() automatically loads certificates from Windows' cert store, making this package unnecessary for most modern use cases. The project is abandoned (last commit 2021-06-28, repository archived), and it targets only Python 2.7 and Python 3.0–3.3, making it incompatible with current Python versions.

Use it for:

  • Extract CA certificates from Windows system store for legacy Python 2.7 applications that predate automatic cert loading.
  • Access CRL (Certificate Revocation List) certificates from Windows' cert store in older codebases.
  • Build a temporary certificate bundle file from Windows system stores for use with ssl.wrap_socket on Python 2.7.
  • Enumerate certificates by enhanced key usage (e.g., SERVER_AUTH, CLIENT_AUTH) on Windows in pre-2.7.9 Python environments.

Worth the install?

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

Accesses Windows system certificate stores (CA and CRL) via ctypes and crypt32.dll to extract certificates for SSL/TLS operations.

No. The package is abandoned, deprecated by design, and incompatible with Python 3.4+. Modern Python (2.7.9+) handles Windows certificate stores automatically via ssl.create_default_context(). Install only if you are maintaining legacy Python 2.7 code that predates this built-in behavior and cannot upgrade.

Install

wincertstore on PyPI

pip

pip install wincertstore

uv

uv add wincertstore

poetry

poetry add wincertstore

Installing wincertstore

Before you install

Low install friction, but the package is abandoned as of 2021 and deprecated by design—Python 2.7.9+ and modern Python 3 versions handle Windows cert stores automatically via ssl.create_default_context().

License in practice

Licensed under the Python Software Foundation License (PSFL), a permissive license. No restrictions on use, modification, or distribution for most purposes.

Quickstart

import wincertstore
for storename in ("CA", "ROOT"):
    with wincertstore.CertSystemStore(storename) as store:
        for cert in store.itercerts(usage=wincertstore.SERVER_AUTH):
            print(cert.get_pem().decode("ascii"))
            print(cert.get_name())

Windows XP or newer required; Windows-only (uses crypt32.dll). Not compatible with Python 3.4+.

Verify before relying

  • Whether the package works reliably on modern Windows versions (last release 2021-06-08, no recent maintenance).
  • Current compatibility with Python 3.3 given the requires_python constraint excludes 3.4+.

Package facts

License PSFL (permissive)
Python support not specified (>=2.7,!=3.0.*,!=3.1.*,<3.4.*)
Install friction low — pure-Python wheel
Runtime dependencies none
Maintenance abandoned — 1,893 days since the last release
Last repo commit (repository archived)
First released
Downloads 395,270/month — #6,983 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: wincertstore-0.2.1-py2.py3-none-any.whl

Keywords: windows, cert, ssl, ca, crl

Development Status :: 4 - BetaIntended Audience :: DevelopersLicense :: OSI Approved :: Python Software Foundation LicenseNatural Language :: EnglishOperating System :: Microsoft :: WindowsProgramming Language :: PythonProgramming Language :: Python :: 2Programming Language :: Python :: 2.7Programming Language :: Python :: 3

Tags

windows certificate store accessextract windows ca certificateswindows ssl cert storecrypt32 certificate retrievalwindows root certificate store
windows-onlydeprecatedlegacy

More Cryptography packages