I'm trying to deploy changes that include Named Credentials from one sandbox to another. In order to do that, all the certificates used by my Named Credentials need to be in the target sandbox at the time of deployment.

I'm trying to use the Export to Keystore/Import from Keystore feature to migrate all the missing certificates, but I get the following error:

Keystore contains a certificate with an alias that conflicts with a certificate already in the organization.

There is indeed a duplicate certificate in the target sandbox. But I can't just delete it, since it is tied to existing Named Credentials in that sandbox.

It doesn't appear that you can simply export/import individual certificates -- it seems to be all or nothing.

Am I missing something? How can I get these changes deployed?


1 Answer 1


I ended up solving the problem by renaming the existing certificates in the target sandbox.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.