Skip to main content

Simple Python client library for TheCA.cn

Project description

theca-sdk-python

Usage 1: Set environment variables

export DEVNULL_EMAIL="_your_registered_email"
export DEVNULL_ACCESS_KEY="_your_access_key_"
export DEVNULL_SECRET_KEY="_your_access_key_"

python3 -c 'from theca import create_cert; create_cert()'
ls -lt  $HOME/.devnull/certs/

Usage 2: Serve a credential file

cat ~/.devnull/credentials
[default]
email = ca-by-devnull@outlook.com
accesskey = _your_access_key_
secretkey = _your_secret_key_

python3 -c 'from theca import create_cert; create_cert()'
ls -lt  $HOME/.devnull/certs/

Trust your private CA -- todo

theca_add_ca --orgid 0c74e79c1014
theca_add_ca --email ca-by-devnull@outlook.com

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

theca-2.0.1.tar.gz (15.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

theca-2.0.1-py3-none-any.whl (16.5 kB view details)

Uploaded Python 3

File details

Details for the file theca-2.0.1.tar.gz.

File metadata

  • Download URL: theca-2.0.1.tar.gz
  • Upload date:
  • Size: 15.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for theca-2.0.1.tar.gz
Algorithm Hash digest
SHA256 4a12f5784b1c4dcfdefa9d21628811da43c8fb5d6903bed6b3d73828cff7a331
MD5 59a2d2fdfad4dc6ddde84ca245222a2c
BLAKE2b-256 41d81a3edc689ca2d6cb82c0f39ef1d72a2a64cca6c46b4f132a4b2e46f874e0

See more details on using hashes here.

File details

Details for the file theca-2.0.1-py3-none-any.whl.

File metadata

  • Download URL: theca-2.0.1-py3-none-any.whl
  • Upload date:
  • Size: 16.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.9.19

File hashes

Hashes for theca-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f55f2fa8c69547153391ccf20d5aedfb65a924cc3771f8606b17b3184a579b52
MD5 bdf476de3213fd8c6aae18720e4342e8
BLAKE2b-256 d5f937d73d72d6faec32e13390f6a4e894bbaaca4fc9ebf5879a6065a49fad78

See more details on using hashes here.

Supported by

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