9. Transfer TLS Credentials
In this step, three files that were generated during the setup of the node computer will be copied to the gateway computer.
About SCP
scp, secure copy, is installed by default on Ubuntu. scp will be used to copy files from the NODE computer to the GATEWAY computer. The instructions below assume you have SSH enabled and configured on your Gateway computer.
Gateway Computer IP
Get the public IP address by running the following command on the GATEWAY computer.
curl -w "\n" ipinfo.io/ip
Copy Files NODE >> GATEWAY
Copy the three files named, gateway-cert.crt
, gateway-key.key
, and cmix-cert.crt
from the NODE computer to the GATEWAY computer.
In the following command you MUST change the username and IP address. For example, if the username on the GATEWAY computer is ubuntu and the public IP address of the GATEWAY computer is 111.22.33.4, change ...
[Gateway username]@[Gateway public IP]
to [email protected]
scp /opt/xxnetwork/cred/gateway-cert.crt /opt/xxnetwork/cred/gateway-key.key /opt/xxnetwork/cred/cmix-cert.crt [Gateway username]@[Gateway public IP]:/opt/xxnetwork/cred/
Check the Files Copied
On the GATEWAY computer, check that the three files are now in the /opt/xxnetwork/cred/
directory.
ls -la /opt/xxnetwork/cred/
Remove gateway-key.key From NODE
Ensure the file gateway-key.key was listed when the previous command was run.
On the NODE computer, you can now delete the Gateway's private key from the Node computer.
rm /opt/xxnetwork/cred/gateway-key.key