Skip to main content
Participant
August 21, 2025
Answered

How to best export java cecerts from CF2021 system to CF2023

  • August 21, 2025
  • 1 reply
  • 206 views

Hello,

We are migrating Coldfusion from Centos 7.8 [CF2021] to Ubuntu 22.24 [CF2023].

I was wondering what are the best methods to export $CF_2021_DIR/jre/lib/security/cacerts and import them to the new server?

Is it the via scripts or can just cacerts file be copied over?

What is the recommeded way if any?

 

Thanks

Dejan

    Correct answer Ravi Shankar266617537wjh

    Hello Dejan,

     

    Please run the command below for exporting the contents of cacerts from one Java to another Java, make sure you take a valid backup of cacerts before you make any changes

    keytool.exe -importkeystore -srckeystore C:\Program Files\Java\jdk-11\lib\security\cacerts -destkeystore C:\ColdFusion2023\jre\lib\security\cacerts -srcstorepass changeit -deststorepass changeit -v -noprompt

     

    Thanks & Regards

    Ravi

     

     

    1 reply

    Adobe Employee
    August 21, 2025

    Hello Dejan,

     

    Please run the command below for exporting the contents of cacerts from one Java to another Java, make sure you take a valid backup of cacerts before you make any changes

    keytool.exe -importkeystore -srckeystore C:\Program Files\Java\jdk-11\lib\security\cacerts -destkeystore C:\ColdFusion2023\jre\lib\security\cacerts -srcstorepass changeit -deststorepass changeit -v -noprompt

     

    Thanks & Regards

    Ravi

     

     

    dkgcbAuthor
    Participant
    August 21, 2025

    Hi Ravi, thank you so much.

    Just a follow up question.

    Will this command merge and carry over outdated root certificates that might be in the old store?

    Adobe Employee
    August 21, 2025

    Hello Dejan,

     

    It will import all the contents from the existing cacerts to the destination cacerts 

     

    Thanks & Regards

    Ravi