Skip to main content

theca-sdk-python

Run your own private CA at devnull.cn: the service signs a per-account root CA and SAN certificates, and this package writes the PEM files to ~/.devnull/certs/.

Requires theid>=2 (theid 2.0 credentials; the service only accepts EdDSA access tokens).

Usage

# Credentials come from ~/.devnull/credentials (shared with devnull-cli) or env
export THEID_ACCESS_KEY=DK...
export THEID_SECRET_KEY=...

python3 - <<'EOF'
from theca import create_cert
print(create_cert())
EOF

ls -lt ~/.devnull/certs/
# key.pem  crt.pem  fullchain.pem  ca.pem  system_id  subject_alternative_names  properties

create_cert() creates the account's root CA on first use, then issues a certificate for the host's system_id plus its private/public thedns names, and writes the chain next to it. The returned ca_url (https://devnull.cn/getca/<orgid>) downloads the CA certificate.

Point at another environment with DEVNULL_THECA_URL (default https://devnull.cn/theca). The identity service is resolved by theid (DEVNULL_BASE_URL / THEID_ISSUER).

What the service stores

Per account: one RSA-4096 root CA (10 years) and up to 11 RSA-2048 certificates (1 year, SANs from the requested names). All material is stored in Postgres as base64 PEM; create_cert() is idempotent per common name.

Metadata

Release files for theca 3.0.1

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

Source distribution (sdist)

Source distribution for theca 3.0.1
File Size Uploaded Provenance
theca-3.0.1.tar.gz 15.8 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 32.1 kB

Release files / theca-3.0.1.tar.gz

Download URL theca-3.0.1.tar.gz
Size 15.8 kB
Tags Source
SHA-256 checksum
How to use checksums
8353ae95ef957273ee5a8a35125847f20e189ae5443d5a2ceb1ec761dee1a34a
BLAKE2b-256 checksum
How to use checksums
4a11bb8e3ff4db2364dce701133d0c379100ed082937570bf5e77a782c5ff7e1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Release files / theca-3.0.1-py3-none-any.whl

Download URL theca-3.0.1-py3-none-any.whl
Size 16.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
43007c273a6ab1cb3458a96f44624ae14ef8aee2f4b11bb314fc7772f0727db8
BLAKE2b-256 checksum
How to use checksums
374e10e8e2099fdb7ec25afbc1937aa7b7f7756a22fe5fa693dd409c42c4fba2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.5

Security for theca 3.0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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