Certificates
Trust registries support X.509 certificates for verification of credentials using a list of trusted certificates within the chain of trust.
Not to be confused with signing key certificates
Signing key certificates are used for embedding in the newly created credentials, while certificates presented on this page are used for verification purposes within trust registries, and for storing certificate authority certificates.
Certificates can either be manually uploaded from existing PEM values or created using Document Rails certificate authority management API.
Usage
import { createCertificate } from "@vaultie/document-rails";
const response = await createCertificate(
client,
accessToken,
organizationId,
{
// Certificate PEM value.
certificate: "...",
}
);
import { listCertificates } from "@vaultie/document-rails";
const response = await listCertificates(
client,
accessToken,
organizationId
);
import { getCertificate } from "@vaultie/document-rails";
const response = await getCertificate(
client,
accessToken,
organizationId,
certificateId
);
import { deleteCertificate } from "@vaultie/document-rails";
await deleteCertificate(
client,
accessToken,
organizationId,
certificateId
);