PublicKeyCertificateSet defines a set of public certificate keys or JSON Web Keys (JWKs). It controls whether Salesforce obtains the keys through references to PublicKeyCertificate components or from an HTTPS endpoint that returns a JSON Web Key Set (JWKS).
A MessagingChannel can select this set through publicKeyCertificateSetName. The set is separate from both the channel and the certificate components: its nested certificate entries are references, not embedded PublicKeyCertificate definitions.
Key Elements
| Element | What the Element Controls |
|---|---|
fullName |
The component's metadata identity, inherited from Metadata. This is distinct from its label. |
masterLabel |
Required. The label for the public key certificate set. |
type |
Required. Selects the key source. Allowed values are JWKS, which uses certificate references, and JWKS_URL, which uses jwksEndPoint. |
jwksEndPoint |
The URL of the HTTPS server that returns the JWKS when type is JWKS_URL. |
jwtIssuer |
Identifies the user, organization, or service that issued the JSON Web Token (JWT). The value is case-sensitive. |
publicKeyCertificateSetKeys |
The collection of certificate-reference entries used when type is JWKS. |
publicKeyCertificate |
Required within each publicKeyCertificateSetKeys entry. References a separate PublicKeyCertificate component. |
Behavior and Constraints
Interpret the key-source fields together with type:
-
JWKS: SupplypublicKeyCertificateSetKeysentries. Each entry must identify a certificate throughpublicKeyCertificate. -
JWKS_URL: UsejwksEndPointto identify the HTTPS server that returns the key set.
The two modes describe different ways to obtain the server's public key set. A certificate reference is not an endpoint, and a nested reference entry does not contain the certificate's definition.
Case differences in jwtIssuer are significant. When checking issuer configuration, preserve the exact capitalization of the intended issuer value.
There are no additional access requirements specific to PublicKeyCertificateSet.
Deployment and Retrieval
Components use the .PublicKeyCertificateSet suffix and are stored in the PublicKeyCertificateSet folder. In package.xml, use PublicKeyCertificateSet as the metadata type name. This type supports the wildcard member *. See Deploying and Retrieving Metadata with the Zip File for manifest and ZIP-file operations.
For a set using JWKS, determine the required certificate assets from the publicKeyCertificate references actually present in the set and the components already in the destination org. Referencing a certificate does not include its definition in the set. When the deployment needs those certificate definitions, include them separately under PublicKeyCertificate in the manifest.
The dependency direction is MessagingChannel to PublicKeyCertificateSet to PublicKeyCertificate for sets using explicit certificate references. Before changing, replacing, or deleting a set, identify channels that reference it. Before changing, replacing, or deleting a certificate, identify sets that reference that certificate and the channels connected to those sets.
Relationships
The channel selects the set, and a set configured for explicit certificates selects its certificate components. These are element references between separate metadata components; the nested key entries are structures within the set, not independently deployed certificate definitions.
References
-
PublicKeyCertificate:publicKeyCertificate, withinpublicKeyCertificateSetKeys.
Referenced By
-
MessagingChannel:publicKeyCertificateSetName.
Common Questions
What is the difference between JWKS and JWKS_URL?
JWKS uses publicKeyCertificateSetKeys entries that reference certificate components. JWKS_URL uses jwksEndPoint, an HTTPS URL that returns a JSON Web Key Set.
Do I need to deploy PublicKeyCertificate with PublicKeyCertificateSet?
It depends on the set's certificate references and what already exists in the destination org. A certificate reference does not include the certificate definition. Include any needed certificate components separately under PublicKeyCertificate.
How does a MessagingChannel reference a public key certificate set?
The channel uses publicKeyCertificateSetName to reference the set. For a set using explicit certificate references, each nested publicKeyCertificate then points to a certificate component.
Is jwtIssuer case-sensitive?
Yes. jwtIssuer identifies the user, organization, or service that issued the JWT, and capitalization differences are significant.