Skip to main content
Test certificates

Create test CA

POST/v4/config/ows/key-management/test-ca

Makes the test root CA of the organisation for one trust domain, with the country that you choose. For development and testing only. The first test certificate of a domain also makes its root, so call this first only to choose the country. The organisation has at most one root for each domain (see Read test CA).

  • mdoc-iaca: country is required. ISO/IEC 18013-5 needs the same country (C) in the Document Signer, the IACA and the mdoc issuing_country.
  • provider and access: country is optional. Default the country of the newest CA-issued leaf of a key of the organisation, else EU.

The root is valid for 9 years, and its key stays in the local key store of the installation. A call with a sandbox API key makes the root of the main organisation.

Authorizations

  • Authorizationstringheaderrequired

    Your API key with the prefix ApiKey: ApiKey <your-api-key>. Get an API key.

    Scope:keys:update

Body

application/json

The trust domain and the country of the root.

  • domainenum<string> | null

    The trust domain of the root. Default mdoc-iaca.

    Available options:mdoc-iaca,provider,access

    Example:"mdoc-iaca"

  • countrystring | null

    The country (C) of the root, an ISO 3166-1 alpha-2 code in upper case. Required for mdoc-iaca (it becomes the issuing_country of the mdoc credentials), optional for provider and access.

    Example:"SE"

Response

application/json

The new test CA.

  • testCaobject

    A test root CA of the organisation, for development and testing only. The organisation has at most one root for each trust domain. Each root has a P-256 key, a validity of 9 years, key usage keyCertSign and cRLSign and basic constraints CA with path length 0 (both critical), and a subject key identifier. The mdoc-iaca root has the IACA profile of ISO/IEC 18013-5 (Table B.1): C, O, CN <organisation> Test CA (NOT FOR PRODUCTION) and an issuer alternative name. The provider and access roots have C, O, the organisation identifier when known, and CN <organisation> Test Provider CA (NOT FOR PRODUCTION) or <organisation> Test Access CA (NOT FOR PRODUCTION). The key of a root stays in the local key store of the installation: it cannot be exported and it is not a signing key of the organisation.

  • warningsobject[]

    The test-certificate warning.