Skip to content

chris-codaio/tinycert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TinyCert

A wrapper library around TinyCert's v1 rest api.

API details (including your API key) can be found at https://www.tinycert.org/docs/api

Usage

Preferred method of use is via the provided ContextManager.

from tinycert import auto_session

with auto_session(api_key, account, passphrase) as session:
    ca_list = session.ca.list()
    cert_list = session.cert.list(ca_list[0]['id'])

Or, connect and disconnect manually.

from tinycert import Session

session = Session(api_key)
session.connect(account, passphrase)
ca_list = session.ca.list()
cert_list = session.cert.list(ca_list[0]['id'])
session.disconnect()

Examples

Find examples in the unit tests under the test/ directory.

About

Python wrapper for the TinyCert REST API.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages