Create 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:countryis required. ISO/IEC 18013-5 needs the same country (C) in the Document Signer, the IACA and the mdocissuing_country.providerandaccess:countryis optional. Default the country of the newest CA-issued leaf of a key of the organisation, elseEU.
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
AuthorizationstringheaderrequiredYour API key with the prefix
ApiKey:ApiKey <your-api-key>. Get an API key.Scope:
keys:update
Body
The trust domain and the country of the root.
domainenum<string> | nullThe trust domain of the root. Default
mdoc-iaca.Available options:
mdoc-iaca,provider,accessExample:
"mdoc-iaca"countrystring | nullThe country (C) of the root, an ISO 3166-1 alpha-2 code in upper case. Required for
mdoc-iaca(it becomes theissuing_countryof the mdoc credentials), optional forproviderandaccess.Example:
"SE"
Response
The new test CA.
testCa objectA 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
keyCertSignandcRLSignand basic constraints CA with path length 0 (both critical), and a subject key identifier. Themdoc-iacaroot 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. Theproviderandaccessroots 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-certificatewarning.