Generate a BYOK-Compatible Certificate
| Available in both Salesforce Classic (not available in all orgs) and Lightning Experience. |
| Available as an add-on subscription in: Enterprise, Performance, and Unlimited Editions. Requires purchasing Salesforce Shield or Shield Platform Encryption. Available in Developer Edition at no charge. |
| User Permissions Needed | |
|---|---|
| To generate, destroy, export, import, upload, and configure tenant secrets and customer-supplied key material: | Manage Encryption Keys |
| Edit, upload, and download HSM-protected certificates with the Shield Platform Encryption Bring Your Own Key service | Manage Certificates AND Customize Application AND Manage Encryption Keys |
This task shows how to create a self-signed certificate using Setup. If you’re not sure whether a self-signed or CA-signed certificate is right for you, consult your organization’s security policy. For more information about what each option implies, see Certificates and Keys.
To create a CA-signed certificate, follow the instructions in Generate a Certificate Signed By a Certificate Authority. To make sure that your certificate is BYOK-compatible, remember to manually change the Exportable Private Key, Key Size, and Platform Encryption settings.
To create a self-signed certificate:
- From Setup, in the Quick Find box, enter Platform Encryption, and then select Key Management.
- Click Bring Your Own Key.
- Click Create Self-Signed Certificate.
-
Enter a unique name for your certificate in the Label field. The Unique Name
field automatically assigns a name based on what you enter in the Label
field.
The Exportable Private Key (1), Key Size (2), and Use Platform Encryption (3) settings are preset. (For a BYOK certificate, you must select 4096 for the key size). These settings ensure that your self-signed certificate is compatible with Salesforce Shield Platform Encryption.

- When the Certificate and Key Detail page appears, click Download Certificate.