You need to sign in to do that
Don't have an account?
VIKASH 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.
any idea how to do that ? any url or any help link will also help. completely blank on this.
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
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.
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