Skip to main content

Python package for providing Microsoft's CA Bundle.

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mscerts-2023.4.26.tar.gz (561.0 kB view details)

Uploaded Source

Built Distribution

mscerts-2023.4.26-py3-none-any.whl (559.6 kB view details)

Uploaded Python 3

File details

Details for the file mscerts-2023.4.26.tar.gz.

File metadata

  • Download URL: mscerts-2023.4.26.tar.gz
  • Upload date:
  • Size: 561.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for mscerts-2023.4.26.tar.gz
Algorithm Hash digest
SHA256 95c73f84a2dabf736a0a3e23c5ea9c3254d81cdb832093164fe398fc65007973
MD5 e7e32b38377f6394edc47d53b88215dc
BLAKE2b-256 34716bf562f52e66e79610b06927ce974260b678cf9d736a0d3065c4cf215b11

See more details on using hashes here.

File details

Details for the file mscerts-2023.4.26-py3-none-any.whl.

File metadata

  • Download URL: mscerts-2023.4.26-py3-none-any.whl
  • Upload date:
  • Size: 559.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.11.3

File hashes

Hashes for mscerts-2023.4.26-py3-none-any.whl
Algorithm Hash digest
SHA256 73ad37ccb5867ffee60b0e11162a4f9acb2804e4885f33e71551b4532d6f790a
MD5 7438743ea5c4d883ffa26a83e9a71967
BLAKE2b-256 38ee9c43dfaf42a5b4c5418a1b58d2befc0d80869682fbd3f1d7e3a1bce52ef3

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page