How to create verifier certificates
Verifiers request credentials for verification by sending verification requests to credential holders. During this process, holders can confirm the verifier’s identity using a chain of trust, which links the verification request to the verifier through a series of certificates. MATTR VII supports both managed and unmanaged (external) verifier certificates, giving verifiers flexibility in how they manage their certificate infrastructure.
- With managed verifier certificates, MATTR VII provisions and maintains the Verifier root CA and the Verification Request Signer Certificates (VRSCs) that sign your requests. If no managed Verifier root CA exists when you create the first verifier application in a tenant, one is created automatically. MATTR VII issues a VRSC for each verifier application when that application first needs to sign a request, and rotates it automatically.
- With unmanaged verifier certificates, you generate and protect the Verifier root CA, and use it to sign a verifier intermediate CA whose key MATTR VII generates and holds. MATTR VII then uses the intermediate CA to issue and rotate the VRSCs for each verifier application, so you sign once rather than for every certificate. See the verifier chain of trust for details.
Unmanaged verifier certificates are intended for organizations that own their Verifier root CA and want to keep it offline or manage it with their own PKI. Use a Verifier root CA that belongs to your organization. Do not register a root CA that belongs to another organization, even if it signs a verifier intermediate CA for you.
The following guide describes how to use MATTR VII to configure a verification solution using unmanaged (external) verifier certificates.
Verifier intermediate CAs are only available via the MATTR VII API for now. Support in the MATTR Portal is coming in a later release.
Generate a self-signed root certificate (Verifier root CA)
Use your preferred cryptographic library or tool to generate a self-signed root certificate (Verifier root CA certificate). This certificate will later be used to sign the verifier intermediate CA certificate. Ensure it meets the requirements specified in the certificate requirements section, and in particular that:
- The subject includes a country (C). MATTR VII copies it into the intermediate CA's subject.
- The basic constraints extension permits a CA beneath the root. Omit the path length constraint or
set it to at least
1. MATTR VII accepts a root with a path length constraint of0, but wallets that validate the chain reject every request signed beneath it.
When using unmanaged (external) certificates, the DTS provider assumes full responsibility for the secure management of the uploaded root certificates and all subordinate certificates. This includes ensuring the protection, proper issuance, and timely revocation of certificates under the uploaded root, as MATTR VII does not manage or monitor these certificates on the issuer's behalf.
Register the external Verifier root CA certificate with MATTR VII
Make a request of the following structure to create an unmanaged Verifier root CA:
POST /v2/presentations/certificates/ca{
"certificatePem": "-----BEGIN CERTIFICATE-----\r\nMIICDjCCAbSgAwIBAgIKdeZsA5NPKimuAzAKBggqhkjOPQQDAjAiMSAwCQYDVQQG\r\n...\r\n-----END CERTIFICATE-----\r\n"
}certificatePem: This required parameter contains the PEM-encoded Verifier root CA certificate. The certificate must meet the following requirements:- Valid
- Not expired
- Compliant with MATTR VII's certificate requirements.
The response will include an id property, which is a unique identifier for the unmanaged Verifier
root CA. This identifier will be used in subsequent operations to reference this unmanaged Verifier
root CA.
Request a verifier intermediate CA
Make a request of the following structure to create a verifier intermediate CA beneath the unmanaged Verifier root CA:
POST /v2/presentations/certificates/ca/{certificateId}/intermediatecertificateId: Replace with theidvalue obtained when you registered the unmanaged Verifier root CA.
The request has no body. MATTR VII generates a P-256 key pair for the intermediate CA, keeps the private key in its key management service, and returns a certificate signing request (CSR):
{
"id": "6c1f3a52-9d04-4c4e-8b8e-2f0a7d1e5b93",
"caId": "080c670a-2e90-4023-b79f-b706e55e9bc6",
"active": false,
"csrPem": "-----BEGIN CERTIFICATE REQUEST-----\n...\n-----END CERTIFICATE REQUEST-----\n"
}id: The unique identifier for the verifier intermediate CA. You will use it to upload the signed certificate.csrPem: The CSR to sign with your Verifier root CA in the next step. It requests basic constraints withCAset toTRUEand a path length constraint of0, thekeyCertSignandcRLSignkey usages, a common name generated by MATTR VII, and the root's country.
A tenant can hold up to three verifier intermediate CAs, including ones that are pending or inactive. Delete intermediate CAs you do not need to free up space.
Sign the verifier intermediate CA certificate
Use your Verifier root CA to sign the CSR. Your certificate authority chooses the validity period, which must fall within the root's validity period. Signer certificates issued beneath the intermediate CA never outlive it, so choose a period that suits your renewal process.
To confirm the CSR carries the subject and extensions you expect before you sign it, paste it into the MATTR Labs CSR decoder. Once the certificate is signed, the X.509 certificate validator checks it against the ISO and MATTR rules.
Upload and activate the verifier intermediate CA
Make a request of the following structure to update the verifier intermediate CA, uploading the signed certificate and activating it:
PUT /v2/presentations/certificates/ca/{certificateId}/intermediate/{intermediateId}certificateId: Theidof the unmanaged Verifier root CA.intermediateId: Theidreturned when you requested the verifier intermediate CA.
{
"active": true,
"certificatePem": "-----BEGIN CERTIFICATE-----\n...\n-----END CERTIFICATE-----\n"
}active: This required boolean indicates whether the intermediate CA is active. Only one intermediate CA can be active beneath a root at a time. Activating one deactivates the others.certificatePem: The PEM-encoded intermediate CA certificate signed in the previous step. Required the first time you update the intermediate CA. Once uploaded, the certificate cannot be replaced, and later updates only changeactive.
MATTR VII rejects the certificate unless it certifies the public key MATTR VII generated, is a CA
certificate that chains to the root, has a common name different from the root's, falls within the
root's validity period, includes the keyCertSign and cRLSign key usages, and has not already
been uploaded to the tenant. An intermediate CA can only be activated within its validity period.
Activate the Verifier root CA
Make a request of the following structure to update the unmanaged Verifier root CA and activate it:
PUT /v2/presentations/certificates/ca/{certificateId}certificateId: Replace with theidvalue obtained when you registered the unmanaged Verifier root CA.
{
"active": true
}The root can only be activated when an intermediate CA beneath it is active.
Create a Verification Request
Once the Verifier root CA and its intermediate CA are active, MATTR VII uses them to sign verification requests. When a verifier application first needs to create a remote verification request, MATTR VII issues a VRSC for that application from the active intermediate CA, and rotates it automatically before it expires. Signed requests carry the VRSC followed by the intermediate CA certificate, and omit the root.
MATTR VII manages these VRSCs, so you cannot create, replace or delete them through the
Verification Request Signers
endpoints, which list them with a caType of mattr. Those endpoints remain available for
Apple Business Connect certificates.
Renew a verifier intermediate CA
MATTR VII cannot renew an intermediate CA signed by your root. Before the active intermediate CA expires, repeat the request, sign and upload steps to create a replacement, and activate it. VRSCs issued by the previous intermediate CA keep signing until their next rotation, when MATTR VII replaces them with ones issued by the new intermediate CA.
If the active intermediate CA expires without a replacement, MATTR VII cannot issue new VRSCs or device-bound signer certificates, and verification requests fail once existing certificates expire.
To remove an intermediate CA, deactivate it, then delete it. Deleting an intermediate CA also deletes every signer certificate it issued. Verifier applications that relied on them receive a new VRSC from the active intermediate CA on their next signed request.
Certificate revocation lists
Each uploaded intermediate CA has a certificate revocation list that MATTR VII signs and serves
publicly at
GET /v2/presentations/certificates/ca/{certificateId}/intermediate/{intermediateId}/crl.
VRSCs issued by the intermediate CA point to it in their CRL distribution point extension.
How would you rate this page?
Last updated on