# Insecure param does not complete disable verification

**URL:** https://discuss.elastic.co/t/insecure-param-does-not-complete-disable-verification/334549
**Category:** Elastic Agent
**Tags:** elastic-stack-security, fleet
**Created:** [May 29, 2023, 5:01am UTC](https://discuss.elastic.co/t/insecure-param-does-not-complete-disable-verification/334549 "2023-05-29T05:01:08Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![kmahyyg](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kmahyyg/32/101753_2.png) [@kmahyyg](https://discuss.elastic.co/u/kmahyyg)
#### Post date: [May 29, 2023, 5:01am UTC](https://discuss.elastic.co/t/insecure-param-does-not-complete-disable-verification/334549/1 "2023-05-29T05:01:08Z")

</div>

I use `--insecure` when enrolling agent into fleet server in development environment. With some unable-to-say restrictions, this development environment cannot connect to CRL server.

However, in current environment, the `curl -v https://my-server:8220/api/status` returns fine on unix OS, since they does NOT check CRL on connection establishment. The certificate and CA are already trusted on OS level.

In windows, even I disabled CRL check in Internet Settings and rebooted, the curl will still give me this error: `schannel: next InitializeSecurityContext failed: Unknown error (0x80092013) - The revocation function was unable to check revocation because the revocation server was offline.`

Since the elastic-agent and elastic-defend are using Golang/libcurl (in cpp) and do NOT give that detailed information, I've managed to find the root cause using a lot of time.

Please also set `--insecure` to disable OCSP and CRL check, thanks.

---

<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: [June 26, 2023, 5:01am UTC](https://discuss.elastic.co/t/insecure-param-does-not-complete-disable-verification/334549/2 "2023-06-26T05:01:27Z")

</div>

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