When integrating your Salesforce with Zoom to sync deal progress with Zoom Revenue Accelerator, you will be asked for the JWT from your Salesforce account. In generating the token, you must follow this guide in the order listed.
This article contains:
Pro, Business, Enterprise, or Zoom Phone standalone account
Licensed user with Zoom Revenue Accelerator license
Salesforce account with admin access
Select your platform to view the instructions on how to create a private key and a self-signed digital certificate. This is the first step in successfully generating a Salesforce JWT.
The following process produces two files:
mkdir /Users/jdoe/Documents/JWT
Note: You can select where you wish to save the JWT directory.
Enter the following command to access the created directory.
cd /Users/jdoe/Documents/JWT
openssl genrsa -des3 -passout pass:SomePassword -out server.pass.key 2048
openssl rsa -passin pass:SomePassword -in server.pass.key -out server.key
openssl req -new -key server.key -out server.csr
Enter information about your company when prompted or use a period to leave the field blank before hitting enter from your keyboard.
Enter the following command to generate a self-signed digital certificate from the server.key and server.csr files. Store the certificate in a file called server.crt.
openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
Note: You may also refer to Create a Private Key and Self-Signed Digital Certificate and Salesforce documentation regarding how to acquire the token.
The following process produces two files
mkdir /Users/jdoe/Documents/JWT
Note: You can select where you wish to save the JWT directory.
Enter the following command to access the created directory.
>cd /Users/jdoe/Documents/JWT
>openssl genrsa -des3 -passout pass:SomePassword -out server.pass.key 2048
openssl rsa -passin pass:SomePassword -in server.pass.key -out server.key
openssl req -new -key server.key -out server.csr
Enter information about your company when prompted or use a period to leave the field blank before hitting enter from your keyboard.
openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt
Note: You may also refer to Create a Private Key and Self-Signed Digital Certificate and Salesforce documentation regarding how to acquire the token.
After creating a private key and a self-signed digital certificate, follow these steps in the order listed.
Select Use digital signatures then click Choose File.
Open the JWT directory you have created then select server.crt.
Click Save.
When a dialog box appears saying changes will take up to 10 minutes to take effect, click Continue.
Note: Once the page loads, you should see a Consumer Key. Click Copy and paste it on a notepad. This will be used when generating the JWT. In cases where the Consumer Key does not appear, click Manage Consumer Details. You will be asked to verify your identity through a verification code sent to your email before it displays your Consumer Key.
Note: aud refers to the Callback URL. You can get the Callback URL when you:
To validate the token, open a browser and enter
https://login.salesforce.com/services/oauth2/token?grant_type=urn:ietf:params:oauth:grant-type:jwt-bearer&assertion=${your jwt token}
If your token is not valid, you will see a response that says <error>invalid_grant</error>.