Hi @ManuelF
In order to restart the elastic-endpoint
, you should be able to run: sudo systemctl restart ElasticEndpoint
on Linux.
EDIT: in addition, you should run: update-ca-certificates
to ensure that the Endpoint will recognize the new certs.
If this is still not working, try following the commands from this comment:
FWIW, on an Ubuntu Linux VM, I was able to connect up an endpoint to elasticsearch using pki certificates. An issue I noticed was that I needed to restart endpoint in order for it to pick up changes in the system's trusted certificates.
I ran the following two commands in a root shell to add the certificate:
$ openssl pkcs12 -in certs/http.p12 -nokeys -out /usr/local/share/ca-certificates/elasticsearch-http.crt
$ update-ca-certificates
After restarting the endpoint, it was able to connect up …
As @ferullo has said, this could be a bug in the Endpoint restarting upon restart of the elastic-agent
, so the steps you took will be helpful.