PublicKeyCertificate stores a public certificate or JSON Web Key (JWK) used to validate a customer-provided JSON Web Token (JWT). Its role is token verification: the jsonWebKey field represents the public cryptographic key used to verify the token.
Key material, activation, and identity are separate concerns. Populating jsonWebKey does not make the component active, and the required masterLabel is a label, not a substitute for the component's fullName.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
Identifies the metadata component. This field is inherited from Metadata and is distinct from the label. |
masterLabel |
Required string containing the public key certificate's label. |
isActive |
Boolean indicating whether the component is active. Allowed values are true and false; the default is false. |
jsonWebKey |
String containing JSON that represents the public cryptographic key used for token verification. The JSON is not a collection of nested metadata elements. |
description |
String describing the public key certificate. |
Behavior and Constraints
Evaluate isActive separately from jsonWebKey when reviewing authentication configuration. A component can contain key material while remaining inactive; the presence of that material alone does not establish activation.
Keep the JWK content inside the jsonWebKey string rather than turning its members into metadata fields. Example JWK members and algorithm values, such as RS256, do not establish defaults or an exhaustive list of supported key configurations.
masterLabel is required, but it serves a different purpose from fullName. Use the component identity, not its display label, when determining which metadata component you are inspecting.
There are no additional access requirements specific to PublicKeyCertificate.
Deployment and Retrieval
Components are stored in the PublicKeyCertificate folder and use the .PublicKeyCertificate suffix. In package.xml, the metadata type name is PublicKeyCertificate. The type supports the wildcard * in the manifest's members element.
For the manifest and ZIP-file structure, see Deploying and Retrieving Metadata with the Zip File.
When preparing a deployment, check both the key content and the intended activation state. A populated jsonWebKey does not replace an explicit review of isActive, whose default is false.
Before replacing or deleting a certificate, inspect actual PublicKeyCertificateSet references to it. The existence of this relationship in the metadata schema does not establish that a particular certificate is referenced or used at runtime.
Relationships
A certificate can be referenced by a certificate set. Inspect the set's reference values to establish dependencies on a specific component; the possible connection alone does not prove usage.
Referenced By
-
PublicKeyCertificateSet:publicKeyCertificate.
Common Questions
Why is my PublicKeyCertificate inactive even though it contains a key?
isActive defaults to false. Supplying jsonWebKey does not by itself make the component active.
Is jsonWebKey nested XML or a JSON string?
It is a string containing JSON. JWK members belong inside that string, not as separate metadata elements.
How do I retrieve PublicKeyCertificate components with package.xml?
Use PublicKeyCertificate as the type name. The manifest supports * in members. Component files use the .PublicKeyCertificate suffix in the PublicKeyCertificate folder.
What should I check before replacing or deleting a PublicKeyCertificate?
Inspect PublicKeyCertificateSet components for publicKeyCertificate references to the certificate. A possible schema relationship is not proof of an actual dependency or runtime usage.
Are masterLabel and fullName interchangeable?
No. masterLabel is the required label; the inherited fullName identifies the metadata component.