Hi, Alvaro.
It will depend on the command used to generate those certificates and keys for all the instances you did set before.
The previous one provided (/usr/share/elasticsearch/bin/elasticsearch-certutil cert ca --pem --in instances.yml --out certs.zip) will not save the ca.key file on the disk so it cannot be used again to sign other certificates, ensuring it will not be used to generate a false identity.
Now, in case you would like to add new nodes to the Elastic Stack's X-Pack set, in your case Metricbeat on agents, you will have to create again new certificates and keys by adding the new instances to /usr/share/elasticsearch/instances.yml and then follow the steps as explained.
However, in case you foresee to expand it, create your own CA certificate and key by using the command /usr/share/elasticsearch/bin/elasticsearch-certutil ca --pem --out ca.zip. Then, unzip it and execute the following command to obtain the certificates and keys for all the machines:
/usr/share/elsticsearch/bin/elasticsearch-certutil cert --pem -ca path/to/ca.cert --ca path/to/ca.key --in instances.yml --out certs.zip
Then, in case you want to add new nodes, you can use the following command:
/usr/share/elsticsearch/bin/elasticsearch-certutil cert --pem -ca path/to/ca.cert --ca path/to/ca.key --ip x.x.x.x --out certs.zip
Please notice that you will need the node's address of your Metricbeat machines and the paths for both CA's certificate and key. Once you have finished the process, keep that key file safe both for security reasons and in order to be able to use it again in the future.
I hope you find this helpful.
Regards,
Pablo Rodríguez