751 B
751 B
UONET+ (hebe) request signer for Python
Installation
$ pip install -U uonet-request-signer-hebe
Usage
Generate an RSA2048 key pair (private key and certificate):
from uonet_request_signer_hebe import generate_key_pair
certificate, fingerprint, private_key = generate_key_pair()
Sign request content:
from uonet_request_signer_hebe import get_signature_values
from datetime import datetime
digest, canonical_url, signature = get_signature_values(fingerprint, private_key, body, full_url, datetime.now())
Tests
$ python -m pytest .