mscerts
Python package for providing Microsoft's CA Bundle.
What it is and what it does
mscerts is a Python package that bundles Microsoft's Root Certificate Authorities from the Microsoft Trusted Root Program, similar to how certifi packages Mozilla's certificates. It provides a single function, `where()`, that returns the file path to a PEM-formatted certificate bundle, and can also be invoked from the command line. The package has no runtime dependencies and supports Python 3.7 through 3.14.
The package is explicitly positioned as a specialized alternative to certifi for scenarios where Microsoft's certificate store is specifically required—notably in projects like signify that validate Windows signatures. The maintainers warn that Microsoft's CA program allows granular deprecation of individual CAs that certificate bundle files cannot represent, meaning the bundle may inadvertently trust certificates no longer trusted in their intended context. For most general-purpose use, certifi is recommended instead.
Use it for:
- Validate Windows code signatures or Authenticode certificates in Python applications that need Microsoft's trust store.
- Build tools or security software that must respect Microsoft's specific CA trust decisions rather than Mozilla's.
- Environments where only Microsoft-trusted CAs are acceptable for compliance or policy reasons.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides access to Microsoft's Root Certificate Authorities bundle for Python, allowing applications to reference the Microsoft Trusted Root Program's CA certificates.
Yes, but only if you specifically need Microsoft's CA bundle. For general HTTPS and certificate validation, use certifi instead. Install mscerts only when your application explicitly requires Microsoft's Root Certificate Authorities—such as validating Windows signatures or in compliance-constrained environments. Be aware of the deprecation limitation documented in the package description.
Install
mscerts on PyPI
pip
pip install mscertsuv
uv add mscertspoetry
poetry add mscertsInstalling mscerts
Before you install
Low installation friction with no runtime dependencies. Active maintenance as of July 2026, though the project has modest visibility (5 stars). The package is a straightforward certificate bundle mirror.
License in practice
Licensed under MPL-2.0 (copyleft). Users must comply with Mozilla Public License 2.0 terms if they modify or redistribute the package; for typical use (reading certificates), the license poses minimal practical constraint.
Quickstart
pip install mscerts
import mscerts
print(mscerts.where())
Verify before relying
- Whether the Microsoft CA deprecation warning (granular CA removal not reflected in bundle files) affects your specific use case or certificate validation chain.
- Current size and update frequency of the Microsoft certificate bundle relative to your security requirements.
Package facts
| License | MPL-2.0 (copyleft) |
| Python support | supports the current Python release (>=3.7) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | none |
| Maintenance | actively maintained — 44 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 171,531/month — #10,362 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mscerts-2026.7.1-py3-none-any.whl
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
certipyCertipy creates and manages certificate…
permissive · top 15,000 on PyPI
wassimaWassima provides access to your operating…
permissive · top 5,000 on PyPI
python-certifi-win32Patches certifi at runtime to include…
permissive · top 15,000 on PyPI
wincertstoreAccesses Windows system certificate stores (CA…
permissive · top 15,000 on PyPI
certifi-linuxRedirects certifi's certificate lookup to use…
permissive · top 15,000 on PyPI
truststoreTruststore exposes native system certificate…
permissive · top 1,000 on PyPI
secure-smtplibProvides secure SMTP subclasses with TLS/SSL…
unclear · top 15,000 on PyPI
qsAPIqsAPI is a Python client for Qlik Sense QPS and…
permissive · top 15,000 on PyPI
fds.sdk.utilsProvides OAuth 2.0 authentication and utility…
permissive · top 15,000 on PyPI