# Elastic Agent Install - Proxy Header Syntax

**URL:** <https://discuss.elastic.co/t/elastic-agent-install-proxy-header-syntax/302667>\
**Category:** Elastic Observability\
**Tags:** fleet\
**Created:** [April 19, 2022, 6:24am UTC](https://discuss.elastic.co/t/elastic-agent-install-proxy-header-syntax/302667 "2022-04-19T06:24:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sathishpal](https://avatars.discourse-cdn.com/v4/letter/s/49beb7/32.png) [@sathishpal](https://discuss.elastic.co/u/sathishpal)\
**Post date:** [April 19, 2022, 6:24am UTC](https://discuss.elastic.co/t/elastic-agent-install-proxy-header-syntax/302667/1 "2022-04-19T06:24:59Z")

</div>

Hi,

We are connecting to fleet via proxy server, I am not sure how to send proxy certificates in the Proxy-Header CLI flag. Here is what I tried that did not work,

Elastic Version: 8.1

Request:

elastic-agent install -f --url="[https://my-fleet-server:8220](https://my-fleet-server:8220)" --fleet-server-es=https://my-elastic-server:9200 --fleet-server-service-token=My-Token --fleet-server-policy=fleet-server-policy --fleet-server-insecure-http --proxy-url="[https://my-proxy-server:443](https://my-proxy-server:443)" --proxy-header={"proxy-cacert":"DigiCertCA.crt","proxy-cert":"SAT0000000.crt","proxy-key":"SAT0000000.key"}

Response:

{"log.level":"info","@timestamp":"2022-04-18T23:12:35.391-0700","log.origin":{"file.name":"cmd/enroll\_cmd.go","file.line":727},"message":"Waiting for Elastic Agent to start","ecs.version":"1.6.0"}  
{"log.level":"info","@timestamp":"2022-04-18T23:12:37.404-0700","log.origin":{"file.name":"cmd/enroll\_cmd.go","file.line":777},"message":"Fleet Server - Starting","ecs.version":"1.6.0"}  
{"log.level":"info","@timestamp":"2022-04-18T23:12:41.415-0700","log.origin":{"file.name":"cmd/enroll\_cmd.go","file.line":777},"message":"Fleet Server - Error - Bad Request","ecs.version":"1.6.0"}

Ngnix Proxy log:

{"http.host":"my-elastic-server","http.url":"","http.version":"HTTP/1.1","http.status\_code":"400","http.method":"CONNECT","http.referer":"","http.useragent":"Go-http-client/1.1","http.request":"CONNECT my-elastic-server:9200 HTTP/1.1","body\_bytes\_sent":"237","remote\_addr":"104.27.197.12","remote\_user":"","server.name":"~^iops._$","server.addr":"108.167.10.12","server.port":"443","ssl\_client\_cert":"","SSL\_client\_verify":"NONE","request\_time":"0.000","response\_content\_type":"text/html","X-Forwarded-For":"104.24.17.2","server\_name":"~^ihub-aiops._$","ssl\_server\_name":"proxy-poc-server.local","ssl\_protocol":"TLSv1.3","ssl\_curves":"X25519:prime256v1:secp384r1:secp521r1","ssl\_client\_fingerprint":"","ssl\_cipher":"TLS\_AES\_256\_GCM\_SHA384"}

Note: On Proxy log, the ssl\_clinet\_cert is coming as NULL

---

<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:** [November 4, 2022, 8:35am UTC](https://discuss.elastic.co/t/elastic-agent-install-proxy-header-syntax/302667/2 "2022-11-04T08:35:11Z")

</div>


