$npx skillfedfor your agent

requests-pkcs12

Add PKCS#12 support to the requests library in a clean way, without monkey patching or temporary files

With conditionsPyPI LibrariesReleased Sep 20251.3M downloads / moISCPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — requests_pkcs12-1.27-py3-none-any.whl
v1.27 · released 2025-09-07 · Python >=3.7 · 2 runtime deps: cryptography, requests

Yes, if you need PKCS#12 support for requests. The implementation is clean, dependencies are minimal, and the license is permissive. The aging maintenance status (341 days since last release) is a minor concern but not a blocker—the package is stable and the repository remains active. No known vulnerabilities. Install if client certificate authentication is a requirement; skip if you can use PEM certificates directly.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires Python 3.7 or later; cryptography and requests must be installed as runtime dependencies.
  • Low friction install with only two runtime dependencies (cryptography and requests).
  • Maintenance is aging—last release was 341 days ago—but the repository remains active and the package is marked Production/Stable.

License · maintenance · safety

ISC (permissive) — ISC license is permissive and places minimal restrictions on use or redistribution, making it suitable for most commercial and open-source projects.

last release 2025-09-07 (341 days) · last repo commit 2025-09-07 · 128 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 1,260,579 downloads/mo, #4,149 on PyPI

Verify before relying

pip install requests-pkcs12

from requests_pkcs12 import get
r = get('https://example.com/test', pkcs12_filename='clientcert.p12', pkcs12_password='correcthorsebatterystaple')
  • Whether the package is actively maintained or in maintenance-only mode given the 341-day gap since last release.
  • Performance characteristics when handling large or many PKCS#12 certificates in high-throughput scenarios.
Same gist for agents: .md · .json

What it is and what it does

requests-pkcs12 extends the requests library to handle PKCS#12 (p12/pfx) certificate files for mutual TLS authentication. Instead of monkey patching or writing unencrypted temporary files, it creates a custom TransportAdapter that provides a custom SSLContext, integrating cleanly into requests' design. You can use it as a drop-in replacement for one-off requests or mount it to a session for repeated authenticated calls.

The package depends on cryptography for certificate handling and requests itself. It supports both file-based and in-memory certificate data, accepts optional password protection, and allows SSL protocol version configuration. The authors position it as a transitional solution until requests adds native PKCS#12 support.

Use it for

  • Authenticate to APIs that require client certificates in PKCS#12 format without managing temporary unencrypted files.
  • Build a requests Session with persistent PKCS#12-based authentication for repeated calls to the same endpoint.
  • Migrate legacy systems using p12 certificates to Python without rewriting certificate handling infrastructure.
  • Test HTTPS endpoints that enforce mutual TLS with client certificate validation during CI/CD pipelines.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need PKCS#12 support for requests.

The implementation is clean, dependencies are minimal, and the license is permissive. The aging maintenance status (341 days since last release) is a minor concern but not a blocker—the package is stable and the repository remains active. No known vulnerabilities. Install if client certificate authentication is a requirement; skip if you can use PEM certificates directly.

Install

requests-pkcs12 on PyPI

Before you install

Low friction install with only two runtime dependencies (cryptography and requests). Maintenance is aging—last release was 341 days ago—but the repository remains active and the package is marked Production/Stable.

Requires Python 3.7 or later; cryptography and requests must be installed as runtime dependencies.

License in practice

ISC license is permissive and places minimal restrictions on use or redistribution, making it suitable for most commercial and open-source projects.

Quickstart

pip install requests-pkcs12

from requests_pkcs12 import get
r = get('https://example.com/test', pkcs12_filename='clientcert.p12', pkcs12_password='correcthorsebatterystaple')

Verify before relying

  • Whether the package is actively maintained or in maintenance-only mode given the 341-day gap since last release.
  • Performance characteristics when handling large or many PKCS#12 certificates in high-throughput scenarios.

Package facts

LicenseISC permissive
Python supportSupports the current Python release >=3.7
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
cryptographyrequests
MaintenanceAging 341 days since the last release
Last repo commit
First released
Downloads1,260,579 / month, #4,149 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: ISC License (ISCL)Programming Language :: Python :: 3Topic :: Software Development :: Libraries

Evidence: requests_pkcs12-1.27-py3-none-any.whl

Tags

Capabilities
pkcs12 certificate requestsclient certificate authentication pythonrequests ssl certificatep12 certificate supporthttps client cert pythonrequests custom ssl contextcertificate-based authentication
Topics
tls-client-authcertificate-handling

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pkcs12 certificate requests”

  • requests-pkcs12Adds PKCS#12 certificate support to the requests library without…
  • google-oauthImplements Google OAuth2 authentication for service accounts,…
  • ocspbuilderocspbuilder creates and signs OCSP requests and responses for X.509…

Give your agent the search over MCP, or paste the wish link into any chat.

More Libraries packages

urllib3 Worth it
PyPI · Libraries · released May 2026

urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.

MITpure Python · 3.10+
1.8Bdownloads / mo
requests Worth it
PyPI · Libraries · released May 2026

Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.

Apache-2.0pure Python · 3.10+
1.8Bdownloads / mo
pluggy Worth it
PyPI · Libraries · released May 2025

Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.

Install it if you're building an extensible application or framework.

MITpure Python · 3.9+aging
1.3Bdownloads / mo
python-dateutil Worth it
PyPI · Libraries · released Mar 2024

Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.

Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.

Apache-2.0pure Python
1.2Bdownloads / mo
six With conditions
PyPI · Libraries · released Dec 2024

Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.

MITpure Python
1.2Bdownloads / mo
pytest Worth it
PyPI · Libraries · released Jun 2026

pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.

MITpure Python · 3.10+
1.1Bdownloads / mo

See also python-certifi-win32 · requests-file · secure-smtplib · django-sslserver · ndg-httpsclient · truststore · pip-system-certs · wincertstore · asn1crypto · pyjks