security/py-truststore 0.10.4_1 MidnightBSD
Verify certificates using native system trust stores
- System
- MidnightBSD
- Repository
- mports
- Maintainer
- [email protected]
- License
- mit
- Categories
- security, python
Description
Truststore is a library which exposes native system certificate stores (ie "trust stores") through an ssl.SSLContext-like API. This means that Python applications no longer need to rely on certifi as a root certificate store. Native system certificate stores have many helpful features compared to a static certificate bundle like certifi:
- Automatically update certificates as new CAs are created and removed
- Fetch missing intermediate certificates
- Check certificates against certificate revocation lists (CRLs) to avoid monster-in-the-middle (MITM) attacks
- Managed per-system rather than per-application by a operations/IT team
- PyPI is no longer a CA distribution channel
Right now truststore is a stand-alone library that can be installed globally in your application to immediately take advantage of the benefits in Python 3.10+. Truststore has also been integrated into pip as an opt-in method for verifying HTTPS certificates with truststore instead of certifi.
Long-term the hope is to make truststore the default way to verify HTTPS certificates in pip and to add this functionality into Python itself. Wish us luck!
In the other systems
| System | Port | Version |
|---|---|---|
| MidnightBSD | security/py-truststore | 0.10.4_1 |
| FreeBSD | security/py-truststore | 0.10.4_1 |
| OpenBSD | security/py-truststore | 0.10.4 |
| NetBSD | security/py-truststore | 0.10.4 |
| DragonFly | security/py-truststore | 0.10.1 |
| HardenedBSD | security/py-truststore | 0.10.4_1 |
| GhostBSD | security/py-truststore | 0.10.4 |
| OPNsense | security/py-truststore | 0.10.4 |
Install
Binary package:
mport install ${PYTHON_PKGNAMEPREFIX}truststore
From mports:
cd /usr/mports/security/py-truststore && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}truststore>0:security/py-truststore
Dependencies
As this port's Makefile names them.
Build 1
${PYTHON_PKGNAMEPREFIX}flit-core>=3.11<4: devel/py-flit-core
Build dependencies 1
Required by 2
Configuration
No options to configure.
- USES
- python ssl
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| truststore-0.10.4.tar.gz | 26169 | 9d91bd436463ad5e4ee4aba766628dd6cd7010cf3e2461756b3303710eebc301 |
Master sites 1
- PYPI