# Generate a New Security Certificate

The security certificate that you download from the Identity Provider and sent to SlapFive when you first set up the Salesforce App typically expires every 12 months. If your certificate has expired, or doesn't match the one SlapFive has uploaded to our authentication server, you must generate a new certificate and send it to SlapFive so we can update your authentication configuration, then update the SlapFive Connected App to use the new certificate.

### Generate the new certificate

* [ ] Go to **Setup** > **Security** > **Certificate and Key Management**.
* [ ] Click the **Create a Self-Signed Certificate** button.
* [ ] Name it: *SelfSignedCert\_today’sDate\_SlapFive* where you substitute today’s date in any readable format for *today'sDate*, and click **Save**.
* [ ] Click to download it and email it to your SlapFive contact or drop it into the shared folder provided by your SlapFive contact.

### Update the SlapFive Connected App to use the new certificate

* [ ] Go to **Setup > Apps > Connected Apps > Manage Connected Apps**.
* [ ] In the list of Connected Apps, click the **Edit** link next to **SlapFive Connected App**.
* [ ] In the **Idp Certificate** field, click the drop-down and select the Self-Signed Certificate you just generated.
* [ ] Click **Save**.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.slapfive.com/integrations/salesforce/slapfive-app-spring-2024-4.0-and-earlier-versions/generate-a-new-security-certificate.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
