Elastic Agent 8.3.3 on MacOS x509: “XYZR" certificate is not standards compliant

Hello Team,

Fleet server is healthy and working well with Linux elastic agents.

Only when i run an agent with another Agent policy for MacOS, I get this error.

siza:elastic-agent-8.3.3-darwin-x86_64 macZ$ sudo ./elastic-agent install --url=https://1.1.1.x:8220 --enrollment-token=ABCBCBCBC
Elastic Agent will be installed at /Library/Elastic/Agent and will run as a service. Do you want to continue? [Y/n]:Y
{"log.level":"info","@timestamp":"2022-08-11T10:33:53.866+0530","log.origin":{"file.name":"cmd/enroll_cmd.go","file.line":471},"message":"Starting enrollment to URL: https://1.1.1.x:8220/","ecs.version":"1.6.0"}
Error: fail to enroll: fail to execute request to fleet-server: x509: “ubuntu” certificate is not standards compliant
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.3/fleet-troubleshooting.html
Error: enroll command failed with exit code: 1
For help, please see our troubleshooting guide at https://www.elastic.co/guide/en/fleet/8.3/fleet-troubleshooting.html
siza:elastic-agent-8.3.3-darwin-x86_64 macZ$ s

There are no error logs found in elasticsearch or kibana related to this.

Should i remove a certificate from an older version or this has to do with some dns name not being in sync ?

Let me know if you need additional information.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.