sudo ./elastic-agent install --url=https://szu.azhszzz.com:8220 --fleet-server-es=https://szu.azhszzz.com:9200 --fleet-server-service-token=AAEAAWVsYXN0aWMvZmxlZXQtc2VydmVyL3Rva2VuLTE2NDQxNDU0Njc3NDY6eDR4UTVSZ3lUbi1FS0dJbzRmbEFDQQ --fleet-server-policy=499b5aa7-d214-5b5d-838b-3cd76469844e --certificate-authorities=/home/user/siza/elastic-agent-7.16.3-linux-x86_64/ca.crt --fleet-server-es-ca=/home/user/certs/fleet-server.crt --fleet-server-cert-key=/home/ec2-user/certs/fleet-server.key
Elastic Agent will be installed at /opt/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:Y
Error: certificate is required when certificate private key is provided
Elasticsearch , kibana and logstash are all all running fine with these certificates and Keys
The error wouldn't tell which key has been put instead of certificate ?
fleet-server.key is the only key in the command above as per instructions in kibana config for elastic agent.
Kindly help since i havent seen this error in any forums.