Adding the Custom Domain in Salesforce

     Recently I came across a scenario where I want to register the domain. This new domain will be used for community. Below is the steps which I followed to register the domain. 

1. Create the CA-Signed Certificate from Salesforce: 

     To create this CA-Signed Certificate Go to Setup -->Certificate and Key Management and Click on Create CA-Signed Certificate.

     Get all the information from the client. Note the Common Name should be your name of the domain without https:// and click Save
     Now you need to click on 'Download Certificate Signing Request' and send the downloaded file to signing authority. 
    Along with the certificate please pass CNAME value. CNAME = <Your Domain>.<Org ID>.live.siteforce.com

2. Upload the Signed Certificate:

     The signing authority will send you the signed certificate. Now you need upload that. To do that go to Setup --> Certificate and Key Management. Click on the certificate which you created on the previous step. Click 'Upload Signed Certificate' button and select the files. Salesforce support only CRT, CER and JKS formats files.
     Once the signed certificate is uploaded the Salesforce certificate will become active.

3. Adding Domain:
    To add the Domain Go to Setup --> Domains. and Click Add Domain. You will the the below screen.

    1. Enter the domain name without https:// and at the last don't add / symbol.
    2. Choose the certificate which you uploaded on the previous step.
    3. Uncheck 'Allow HSTS preloading registration'
    4. Click Save

Now domain is added now we have to wait for 24 hours to activate this domain. Before activating this domain you need to create the Custom URL relating this domain and the site its going to belong on Salesforce. For example and community. 

Once the custom label is created you have the ability to activate the domain. Please click 'Activate' just beside the domain. 

Hope this article will help you to add the domain successfully in Salesforce. Please let me know your feedback on the comments. 

No comments:

Post a Comment