function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
VIKASH CHAND KUMARVIKASH CHAND KUMAR 

Use client certificate jks

I have got jks certificate from client, and want to use to connect cleint server to get files.

any idea how to do that ? any url or any help link will also help. completely blank on this.
Best Answer chosen by VIKASH CHAND KUMAR
ShivankurShivankur (Salesforce Developers) 
Hi Vikash,

You could follow below steps to import jks certificate into Salesforce:
1. Go to the Certificate and Key Management page.
2. Click the “Import from Keystore” button.
3. Select the keystore that you got from the client.
4. Enter the same password you used to create the keystore.
5. Click Save.
6. For the newly created certificate, edit it and change its label to something more readable, such as “Client Certificate.”

Hope above information helps. Please mark as Best Answer so that it can help others in future.

Thanks.

All Answers

ShivankurShivankur (Salesforce Developers) 
Hi Vikash,

You could follow below steps to import jks certificate into Salesforce:
1. Go to the Certificate and Key Management page.
2. Click the “Import from Keystore” button.
3. Select the keystore that you got from the client.
4. Enter the same password you used to create the keystore.
5. Click Save.
6. For the newly created certificate, edit it and change its label to something more readable, such as “Client Certificate.”

Hope above information helps. Please mark as Best Answer so that it can help others in future.

Thanks.
This was selected as the best answer
VIKASH CHAND KUMARVIKASH CHAND KUMAR
Thanks Shiva, i have done that, now i want to callout my client server using certificate

        HttpRequest req = new HttpRequest();
        req.setEndpoint('xxxxxxx.xom');
        req.setMethod('GET');
        req.setClientCertificateName('mykey');
        //req3.setHeader('Accept','application/xml');
        
        Http http = new Http();
        HTTPResponse res = http.send(req);
        System.debug('Body '+res.getBody());
        
        blob csvFile = blob.valueOf(res.getBody());

but i am getting error that 

You must use a valid SSL client certificate. Your certificate subject was null salesforce