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

**URL:** <https://discuss.elastic.co/t/elastic-agent-8-3-3-on-macos-x509-xyzr-certificate-is-not-standards-compliant/311896>\
**Category:** Elastic Agent\
**Created:** [August 11, 2022, 6:16am UTC](https://discuss.elastic.co/t/elastic-agent-8-3-3-on-macos-x509-xyzr-certificate-is-not-standards-compliant/311896 "2022-08-11T06:16:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajj31](https://avatars.discourse-cdn.com/v4/letter/a/f08c70/32.png) [@ajj31](https://discuss.elastic.co/u/ajj31)\
**Post date:** [August 11, 2022, 6:16am UTC](https://discuss.elastic.co/t/elastic-agent-8-3-3-on-macos-x509-xyzr-certificate-is-not-standards-compliant/311896/1 "2022-08-11T06:16:34Z")

</div>

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.

```auto
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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 8, 2022, 6:17am UTC](https://discuss.elastic.co/t/elastic-agent-8-3-3-on-macos-x509-xyzr-certificate-is-not-standards-compliant/311896/2 "2022-09-08T06:17:03Z")

</div>

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