Skip to main content

Create test CA

POST 

/v2/config/digital-wallet/openid/key-management/test-ca

Makes the test root CA of the organisation for one trust domain, with a country. For development and testing only. The organisation has one test root for each trust domain (mdoc-iaca, provider and access, see TestCa), and a second create for the same domain gives 409. The first test certificate of a domain also makes its root, so use this operation to choose the country before the first test certificate of the domain.

The country of the root:

  • mdoc-iaca: country is required. ISO/IEC 18013-5 needs the same country (C) in the Document Signer, in the root (IACA) and in the mdoc issuing_country, and the root is valid for 9 years.
  • provider and access: country is optional. Without it, the root gets the country of the newest leaf certificate that a CA issued for a key of the organisation, else EU.

A sandbox organisation cannot make a test CA.

Request​

Body

required

The trust domain and the country of the root.

    domain stringnullable

    Possible values: [mdoc-iaca, provider, access, null]

    The trust domain of the root. Without a value, mdoc-iaca.

    country stringnullable

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

Responses​

The wallet made the test CA, and the service returned it.

Response Headers
    Schema
      testCa objectrequired

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

      id stringrequired

      Unique identifier of the test CA.

      domain stringrequired

      Possible values: [mdoc-iaca, provider, access]

      The trust domain of the root, and the presets whose test certificates it issues (testCaDomain of the preset). mdoc-iaca, the IACA of the mdoc Document Signers, readers and status list signers. provider, the CA of the PID, wallet, EAA and QEAA providers, the status list signers of the SD-JWT VC and W3C VC credentials, the credential issuers and custom. access, in place of the Access CA of the access certificates (WRPAC) and of the request signers.

      certificate stringrequired

      The root certificate, in PEM format. To trust the test certificates of this root in a verifier of this platform, add it as a trust authority.

      subject stringrequired

      The subject of the root, in the text form of RFC 4514.

      notBefore date-timenullablerequired

      Start of the validity of the root, in UTC.

      notAfter date-timenullablerequired

      End of the validity of the root, in UTC.

      crlUrl stringrequired

      The URL of the certificate revocation list (CRL) of this root. It is a public route of the wallet, without authentication. The answer is the CRL in DER format (application/pkix-crl), signed by the root. Each test certificate of the root has this URL as its CRL distribution point. The route stays available when the installation switches the test CA off.

      certificateUrl stringrequired

      The URL of the root certificate. It is a public route of the wallet, without authentication. The answer is the certificate in DER format (application/pkix-cert). The test certificates of the provider and access roots have this URL in their authority information access extension (caIssuers). The route stays available when the installation switches the test CA off.

      warnings object[]required

      The test-certificate warning.

    • Array [
    • code stringrequired

      Possible values: [test-certificate, preset-override, profile-mismatch, purpose-reuse]

      The kind of warning. test-certificate, the answer issues or shows a certificate of the built-in test CA: the text is always the text of the example. preset-override, a value of the request is not the fixed value of the preset; the request value applies. profile-mismatch, the certificate does not agree with the preset of the key. purpose-reuse, the certificate chain of the key has a preset, and the new CSR, test certificate or chain upload has another preset: use one key for each purpose.

      message stringrequired

      The text of the warning, for a person.

    • ]
    Loading...