---
title: "Configure using your own certificates"
slug: "configure-using-your-own-certificates"
abstract: "How to configure a CNAME record or subdomain delegation strategy for a Sitecore Search implementation while using your own certificates."
---
# Configure using your own certificates

This topic shows you how to use your own certificates to set up a domain delegation strategy, either by CNAME records or subdomain delegation. Search gives you a Certificate Signing Request (CSR) you can use to generate certificates.

This strategy usually requires more technical knowledge for setup and on-going management, and might increase the complexity of your deployment process. However, it also gives you flexibility and control over the certificate's source, type, and security features, which might be useful for an organization with specific security requirements.

> [!note]
> **Before you begin**
> Ensure that your domain's nickname follows standard DNS (Domain Name System) naming protocols. For example, the nickname must not have an underscore (\_) or a period (.). To view your domain's nickname, go to **Administration** > **General Settings** > **Domain Information** > **DOMAIN NICKNAME**.
>
> If you find that your domain's nickname has non-standard characters, contact a Sitecore Search representative to have it changed.
>
> This is important because during domain delegation Search uses SSL certificates whose name contains domain nicknames. SSL certificates cannot have non-standard characters. If they do, they become invalid.

### Caution

Use caution when modifying any settings in **Administration** > **Domain Settings** > **Subdomain Setup**. Your websites and applications that are in production can be impacted.

To configure domain delegation using your own certificates:

1. On the menu bar, click **Administration** > **Domain Settings** > **Subdomain Setup**.
2. To select a domain delegation strategy, click an option next to **Subdomain Strategy**.

    If you want to use CNAME records, click **CNAME**. If you want to use a subdomain delegation, click **Delegation**.

3. To specify that you want to create your own SSL certificates, next to **Certificate Creation**, click **Customer Created**.
4. To confirm your selection click **Run Setup**.

    The setup process can take up to ten minutes. If it's successful, you'll see a **Setup Successful** message and:

    - If you chose the CNAME record strategy, you'll see CNAME records and a Certificate Signing Request (CSR).
    - If you chose the subdomain delegation strategy, you'll see nameserver (NS) details a Certificate Signing Request (CSR).

    > [!note]
    > Running the setup process again after completion does not create new CNAME values.

    > [!note]
    > If the setup times out, retry the operation. If the timeout persists, contact Sitecore Support and provide the Search domain ID, the approximate timestamp of the attempt, the selected subdomain setup method, and a screenshot of the timeout message.

5. Copy or download the CSR.

    Then, send the CSR to a commercial certificate authority (CA) to request a certificate. This procedure varies depending on who your CA is.

6. To create a certification, send the CSR to a commercial certificate authority (CA). This procedure varies depending on who your CA is.

    You'll get a certificate and a certificate chain from your CA.

7. To link your certificate with Search, go to **Administration** > **Domain Settings** > **Subdomain Setup** and paste the following details:
    - In the **SSL CERTIFICATE** field, paste the server (leaf) certificate issued for your Search subdomain.
    - In the **CERTIFICATE CHAIN** field, paste the certificate authority (CA) chain, including any required intermediate certificates.

8. To copy the CNAME records or NS details, next to **CNAME Details** or **Nameserver Details**, click **copy** ![file_copy_icon.png](https://doc.sitecore.com/api/markdown-image/search/en/users/search-user-guide/images/file_copy_icon.png).
9. Go to your DNS provider's administration console, add the CNAME records or NS details, and save your changes.

    This might take anything from a few hours to a day to complete.

10. Verify that your CNAME record or NS details have been added to your DNS provider. To do this, you have two options:
    - Use *https://dnschecker.org* for [CNAME records](https://dnschecker.org/all-dns-records-of-domain.php) or [subdomain delegation](https://dnschecker.org/ns-lookup.php).
    - Use the `host` command in your local terminal.

        For CNAME records, use:

        ```shell
        $ host -t CNAME <yournickname>.rfk.<yourdomain>.com
        ```

        For subdomain delegation, use:

        ```shell
        $ host -t NS <yournickname>.rfk.<yourdomain>.com
        ```

        Here's a sample command to find NS records for the `riggs.rfk.riggsandporter.com` subdomain, followed by the results of that command:

        ```shell
        $ host -t NS riggs.rfk.riggsandporter.com
        riggs.rfk.riggsandporter.com name server ns-1262.awsdns-29.org.
        riggs.rfk.riggsandporter.com name server ns-1868.awsdns-41.co.uk.
        riggs.rfk.riggsandporter.com server ns-450.awsdns-56.com.
        riggs.rfk.riggsandporter.com server ns-709.awsdns-24.net.
        ```

11. To verify that Search considers your CNAME items as added, go to **Administration** > **Domain Settings** > **Subdomain Setup**, and verify that you see green checkmarks ![green_check_CEC.png](https://doc.sitecore.com/api/markdown-image/search/en/users/search-user-guide/images/green_check_CEC.png) next to the CNAME records or NS details.

    > [!important]
    > If you see red ![X](https://doc.sitecore.com/api/markdown-image/search/en/users/search-user-guide/images/red_cross_CEC.png) next to the CNAME record or NS details, your items haven't yet been added yet or were added incorrectly. You'll need to troubleshoot this with your DNS provider before you continue.

12. To complete domain delegation setup, click **Run Completion**.

    The setup process can take up to ten minutes.

    > [!note]
    > If the setup process is successful, you'll see a **Setup Complete. Please see Domain Status tab for more details** message. Now, you can [retrieve the hosts and paths](https://doc.sitecore.com/discover/en/developers/discover-developer-guide/en/retrieve-hosts-and-paths-in-the-discover-cec.html) you need to access various Search services.

    > [!important]
    > If the setup process is unsuccessful, you'll see an error message similar to **Failed to configure SSL certificate, please make sure the CNAME records have been added to your DNS configuration**.
    >
    > If this occurs:
    >
    > -   Verify that the CNAME records or nameserver (NS) details have been correctly added to your DNS provider.
    >
    > -   Verify that the SSL certificate is valid for the generated Search subdomain.
    >
    > -   Ensure that the certificate chain includes all required intermediate certificates.
    >
    >
    > If you're unable to solve the issue with your DNS provider, contact Sitecore Search support and include your domain ID, the approximate time of the attempt, the certificate type, and a screenshot of the error.

## Renewing a customer-created certificate 

To renew a customer-created certificate:

1. Download the Certificate Signing Request (CSR) from **Administration** > **Domain Settings** > **Subdomain Setup**.
2. Submit the downloaded CSR to your certificate authority (CA) to generate the renewed certificate.
3. Package the renewed certificate files in a ZIP file. The ZIP file should include either the `.pfx` file, or the `.key` private key, `.crt` certificate, and `.pem` certificate chain files extracted from the `.pfx` file.
4. Contact Sitecore support who will update the certificate for you. You can [create a support case](https://support.sitecore.com/kb?id=kb_article_view&sysparm_article=KB0654910#HowToCreateASupportCase) in the Sitecore Support portal.