wincertstore
Python module to extract CA and CRL certs from Windows' cert store (ctypes based).
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 wincertstoreuv
uv add wincertstorepoetry
poetry add wincertstoreInstalling 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
Tags
More Cryptography packages
Certifi provides Mozilla's curated collection…
copyleft · top 100 on PyPI
cryptographycryptography provides cryptographic recipes and…
permissive · top 100 on PyPI
rsaPure-Python RSA encryption, decryption,…
permissive · top 1,000 on PyPI
pyOpenSSLpyOpenSSL wraps OpenSSL's SSL/TLS functionality…
permissive · top 1,000 on PyPI
azure-identityProvides Microsoft Entra ID token-based…
unclear · top 1,000 on PyPI
PyNaClPyNaCl provides Python bindings to libsodium…
permissive · top 1,000 on PyPI
certifi-linuxRedirects certifi's certificate lookup to use…
permissive · top 15,000 on PyPI
python-certifi-win32Patches certifi at runtime to include…
permissive · top 15,000 on PyPI
trustmetrustme generates fake TLS certificates and…
permissive · top 5,000 on PyPI
secure-smtplibProvides secure SMTP subclasses with TLS/SSL…
unclear · top 15,000 on PyPI
mscertsProvides access to Microsoft's Root Certificate…
copyleft · top 15,000 on PyPI
wassimaWassima provides access to your operating…
permissive · top 5,000 on PyPI
pip-system-certsAutomatically configures Python to use the…
permissive · top 5,000 on PyPI
truststoreTruststore exposes native system certificate…
permissive · top 1,000 on PyPI
certipyCertipy creates and manages certificate…
permissive · top 15,000 on PyPI