You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 2 Next »

This page describe the two-steps procedure to perform a copy of the ECtrans Associations from one ECaccess Gateway to another.

The two-steps are:

  • Export and Decrypt the ECtrans Associations from the existing ECaccess Gateway
  • Encrypt and Import the ECtrans Associations into the new ECaccess Gateway

Because each Gateway has its own private-key for encryption it is required to decrypt and re-encrypt the ECtrans Associations with the relevant private-key.

Each step can be automated by using the scripts:

  • decrypt.sh
  • encrypt.sh

In order to follow the procedure please first download these two scripts and place them respectively in the "bin" directory of the existing Gateway and the "bin" directory of the new Gateway.

Step 1

Go to the "bin" directory of your existing Gateway:

#cd gateway/bin

Make sure the Gateway is not running:

#./gateway stop

Then start the export/decryption of the ECtrans Associations:

#./decrypt.sh

Once the script has completed the file "uncrypted-assoc.sql" has been created with the ECtrans Associations in clear text.

Just copy this file to the "bin" directory of the new Gateway.

Step 2

On the new Gateway, make sure the "gateway/db" directory is original (the one from the distribution - unmodified). Please also make sure to remove the "private-key.keystore" from the conf directory.

Then go to the "bin" directory of the new Gateway:

#cd gateway/bin

Make sure it is not running:

#./gateway stop

Then start the encryption of the ECtrans Associations:

#./encrypt.sh

Once the script has completed the file "ecaccess.script" has been created with the encrypted ECtrans Associations.

Then copy this file to the "gateway/db" directory:
#cp ./ecaccess.script ../db/.

And start the Gateway:

#./gateway start

 

 

  • No labels