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_PCA_URL (default https://devnull.cn/pca; the 3.0.1 name DEVNULL_THECA_URL is still read). 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.2

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.2
File Size Uploaded Provenance
theca-3.0.2.tar.gz 15.9 kB Without provenance Details

Built distribution (wheel)

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

Total release size: 32.2 kB

Release files / theca-3.0.2.tar.gz

Download URL theca-3.0.2.tar.gz
Size 15.9 kB
Tags Source
SHA-256 checksum
How to use checksums
0a32fb225a913479730fca53423ea994d441f5a228f651a98e9f04319b06e92a
BLAKE2b-256 checksum
How to use checksums
ebc5106c23fd0c467f82d68fa5bcf670c8fe559a881c009f22c4ee5df2be79d4
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.2-py3-none-any.whl

Download URL theca-3.0.2-py3-none-any.whl
Size 16.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a05289beb97213d845cb923892d78063430e1f3cdd616bf66b45bb9e56d0aa18
BLAKE2b-256 checksum
How to use checksums
228e596ef44fcf3670823c3c468832608e6f993e3c66800d1c34ad9fcaf525ab
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.2

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