Certificates
Certificates are used to establish trust between parties in OID4VCI and OID4VP flows. They are included in the x5c header of issued credentials and presentation requests, allowing verifiers and wallets to validate the certificate chain back to a trusted root.
SVX Wallet supports multiple key types, but the two most relevant for certificate-backed trust are:
Credential key – used to sign credentials (for example
mso_mdocDocument Signing Certificate, DSC).Presentation request key – used to sign presentation requests by the verifier, establishing verifier identity.
How Trust Is Established
A signature on its own does not identify a signer. A Verifier receiving a credential can check that it was signed by some key, but needs a reason to believe that key belongs to the Issuer named in the credential. The certificate chain supplies that reason: the signing key's certificate is signed by a root authority, and the Verifier accepts the credential only if that root is one it already trusts. The same applies in reverse when a wallet receives a presentation request and needs to establish which organisation is asking.
Two consequences shape the steps below.
Two separate roots. This guide creates one root authority for credential signing and another for presentation request signing. Who may issue credentials and who may request them are distinct decisions, often made by different governance bodies, so separate roots keep the two independent. In mobile document ecosystems the credential root is known as the IACA (Issuer Authority Certificate Authority).
Signing requests rather than key uploads. Signing keys are generated inside the Wallet's key management system and their private halves are never exported. Certificates are therefore obtained by generating a Certificate Signing Request against a named key — proving possession of the private key without revealing it — signing that request with your root CA, and importing the result.
For the concepts behind this, including how trust anchors and trust lists work, see Certificates and Trust Chains.
Setup Overview
The typical setup flow is:
Create a root CA locally.
Create a Certificate Signing Request (CSR) via the SVX Wallet API.
Sign the CSR with your root CA using
openssl.Import the signed certificate back into the SVX Wallet API.
Optionally import trust anchor certificates for external chain validation.
Who can undertake this operation?
Certificate management can only be performed by people who have access to the SVX Wallet Dashboard and API.
Create a Root CA
Before creating CSRs, you need a root CA to sign leaf certificates. The following examples create a self-signed root CA for credential signing (IACA) and a separate root for presentation request signing.
Create a CSR
CSRs are created via the SVX Wallet API against a named key. The API returns the CSR PEM for external signing.
Create a CSR for the credential signing key:
Create a CSR for the presentation request signing key:
Sign the CSRs
Use openssl to sign each CSR with the appropriate root CA. Certificate extensions differ depending on the intended key usage.
Save the following extension configuration to a file (e.g. openssl-extensions.ext):
Note:
openssl x509 -reqdoes not automatically copy all attributes from the CSR into the signed certificate. Properties such assubjectAltName,keyUsage, andextendedKeyUsagemust be explicitly defined in the extension file to ensure they appear correctly in the issued certificate.
Sign the credential CSR (DSC):
Sign the presentation request CSR:
Import Signed Certificates
Once signed, import each leaf certificate the SVX Wallet API. The certificate must be DER-encoded and base64-encoded in the x5c field.
Import Trust Anchor Certificates
Trust anchor certificates allow the wallet to validate incoming certificate chains from external issuers or verifiers.
Import a trust anchor certificate chain:
Remaining endpoints
The following endpoints are used to maintain and read certificate information:
GET /system/certificates- List all imported trust anchor certificates.DELETE /system/certificates/{certificate_id}- Delete a trust anchor certificate.
API References
Import certificate material in x5c form (DER-encoded, base64-encoded items).
Behavior depends on whether key_name is provided:
With
key_name: imports amanagedcertificate for that managed signing key.x5cmust contain at least one certificate.The first item (leaf certificate) public key must match the managed key.
The full provided chain is stored.
fingerprint256is stored asnull.
Without
key_name: imports atrust_anchorcertificate.x5cmust contain exactly one certificate.fingerprint256is computed and stored.
Notes:
For
mso_mdoc(mDL) credential issuance the credential key must have a valid DSC certificate; issuance will fail without it (see ISO 18013-5 for mDL DSC requirements).When signing CSRs externally (for example with
openssl x509 -req), explicitly provide extensions such assubjectAltName,keyUsage, andextendedKeyUsageso they are present in the issued certificate.
Certificate chain in DER base64 format.
- With
key_name, provide at least the leaf certificate (full chain is accepted and stored). - Without
key_name, exactly one certificate is required.
Optional managed signing key name. When present, imports as managed.
Certificate imported
POST /system/certificates/import HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 34
{
"x5c": [
"text"
],
"key_name": "text"
}Certificate imported
{
"certificate": {
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "trust_anchor",
"key_name": "text",
"kid": "text",
"x5c": [
"text"
],
"fingerprint256": "text",
"created_at": "2026-01-01T00:00:00.000Z"
}
}Returns a paginated list of imported certificates and metadata. The list can be filtered by type, sorted, and paginated by using the available query parameters.
Certificates are stored by type:
managed: bound to a managed signing key (key_namepresent), may contain a fullx5cchain, and hasfingerprint256 = null.trust_anchor: imported withoutkey_name, must contain exactly one certificate inx5c, and has a non-nullfingerprint256.iaca: Issuer Authority Certificate Authority certificate.
The response includes certificate id, type, associated key_name (when bound), the stored x5c, and fingerprint256 according to the certificate type rules above.
Filters the list to certificates of the given type.
Certificates list retrieved
Invalid query params
GET /system/certificates HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
"certificates": [
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"type": "trust_anchor",
"key_name": "text",
"kid": "text",
"x5c": [
"text"
],
"fingerprint256": "text",
"created_at": "2026-01-01T00:00:00.000Z"
}
],
"meta": {
"order_by": "name",
"order": "ASC",
"order_from_params": true,
"per_page": 10,
"per_page_from_params": true,
"records_count": 100,
"page": 1,
"page_count": 10
}
}Delete an imported certificate by identifier.
Removal deletes either:
a
managedkey-bound certificate chain, ora trust entry (
trust_anchor).
Removing a credential signing certificate can break mso_mdoc issuance.
Certificate ID
Certificate deleted
No content
DELETE /system/certificates/{certificate_id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
Certificate deleted
No content
Last updated