Skip to main content

esteid-certificates

Coverage Status

This library contains certificates for Estonian electronic identity services and a couple of functions that facilitate usage.

The library covers the following use cases:

  • embedding the root certificate of the Estonian Certification centre into an XML signature structure prior to signing;
  • obtaining OCSP confirmation of the signer's certificate after signing: the OCSP request must contain an issuer certificate that corresponds to the issuer's common name as included in the signer's certificate.

API

Get a certificate by issuer's common name:

from esteid_certificates import get_certificate_file_path
# path to PEM certificate file
path = get_certificate_file_name("ESTEID2018")
# the certificate as bytes
with path.open("rb") as f:
    assert f.read().startswith(b"-----BEGIN CERTIFICATE-----")

Get the root certificates (also works for test certificates):

from esteid_certificates import get_root_ca_files
for path in get_root_ca_files(test=False):
    with path.open("rb") as f:
        assert f.read().startswith(b"-----BEGIN CERTIFICATE-----")

The certificates can be loaded using e.g. the oscrypto library:

from oscrypto.asymmetric import load_certificate
from esteid_certificates import get_certificate

cert = load_certificate(get_certificate("ESTEID2018"))
assert cert.asn1.native['tbs_certificate']['subject']['common_name'] == 'ESTEID2018'

Certificates

The certificates were downloaded from the certificate page.

The included certificates are copyright to their issuing parties:

and are redistributed for the sole purpose of convenience of use.

Updating

See the update script for how to update the certificates.

Metadata

Release files for esteid-certificates 1.0.5

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

Source distribution (sdist)

Source distribution for esteid-certificates 1.0.5
File Size Uploaded Provenance
esteid_certificates-1.0.5.tar.gz 79.2 kB Without provenance Details

Release files / esteid_certificates-1.0.5.tar.gz

Download URL esteid_certificates-1.0.5.tar.gz
Size 79.2 kB
Tags Source
SHA-256 checksum
How to use checksums
685881bf2d41be1306f49aacf6b40a1b30d9f441e760e05cb5c7dd88df579aba
BLAKE2b-256 checksum
How to use checksums
81d4630aaf2fe9ebfb8b59f6765777579f90d8135721fe0fc521732ade5b0585
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.14.2

Security for esteid-certificates 1.0.5

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