Skip to main content

This package provides easy access to the Root Certificate Authorities present in the Microsoft Trusted Root Program. It is a fork of Kenneth Reitz’s certifi project, which provides access to Mozilla’s collection of Root Certificates.

Warning: Microsoft’s CA Program allows granular CA deprecation, which is not properly supported by certificate bundle files. This means that using this bundle may result in improper trust being applied, e.g. trusting certificates that are not actually trusted in their current use.

It is therefore highly recommended to use certifi instead for almost all needs, except in cases where the Microsoft store is specifically required, such as in the signify project.

Installation

mscerts is available on PyPI. Simply install it with pip:

$ pip install mscerts

Usage

To reference the installed certificate authority (CA) bundle, you can use the built-in function:

>>> import mscerts

>>> mscerts.where()
'/usr/local/lib/python3.7/site-packages/mscerts/cacert.pem'

Or from the command line:

$ python -m mscerts
/usr/local/lib/python3.7/site-packages/mscerts/cacert.pem

Addition/Removal of Certificates

This package is simply a mirror of the Microsoft store, and does not support any addition/removal or other modification of the CA trust store content. The sole provider of certificates in this store is Microsoft. See https://aka.ms/RootCert for more information.

Metadata

Release files for mscerts 2026.8.28

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mscerts 2026.8.28
File Size Uploaded
mscerts-2026.8.28.tar.gz 733.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for mscerts 2026.8.28
File Interpreter ABI Platform
mscerts-2026.8.28-py3-none-any.whl Python 3 none any Details

Total release size: 1.5 MB

Release files / mscerts-2026.8.28.tar.gz

Download URL mscerts-2026.8.28.tar.gz
Size 733.3 kB
Tags Source
SHA-256 checksum
How to use checksums
d2d1b81e15c15a20c48d7f64ec6d6671ed387ad90dfcba2bb48a1534e0bb6a41
BLAKE2b-256 checksum
How to use checksums
4dd7cf0be205fe5fe92d605a94af8c539e5e8b0d5c2e13a6f7329ad2a75b7c86
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14

Release files / mscerts-2026.8.28-py3-none-any.whl

Download URL mscerts-2026.8.28-py3-none-any.whl
Size 731.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3310365f6dd41faceb5b7dc081312107d4a05deec2bbcf77fcf041349ff95a6a
BLAKE2b-256 checksum
How to use checksums
80d4dbfaf4e244d173e2d679bdc47503732e9d0c1afabf67a70583092108e7fd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.14
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page