# How to Disable SSL Certificate Verification for Logstash-Plugin (installing plugins)

**URL:** <https://discuss.elastic.co/t/how-to-disable-ssl-certificate-verification-for-logstash-plugin-installing-plugins/257590>\
**Category:** Logstash\
**Created:** [December 3, 2020, 9:44pm UTC](https://discuss.elastic.co/t/how-to-disable-ssl-certificate-verification-for-logstash-plugin-installing-plugins/257590 "2020-12-03T21:44:34Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeremy\_A](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jeremy_a/32/42598_2.png) [@Jeremy\_A](https://discuss.elastic.co/u/Jeremy_A)\
**Post date:** [December 3, 2020, 9:44pm UTC](https://discuss.elastic.co/t/how-to-disable-ssl-certificate-verification-for-logstash-plugin-installing-plugins/257590/1 "2020-12-03T21:44:34Z")

</div>

This is more of an information post than a question, because I noticed several unanswered questions along these lines while searching for a solution myself.  
The problem occurs when trying to use `bin/logstash-plugin` to install a plugin behind a corporate firewall where the SSL certificate cannot be verified. One encounters a ruby error saying `ERROR: Something went wrong when installing <PLUGIN>, message: certificate verify failed`.

Well, I found a solution after some digging which seems to have worked for me.

You will need to edit a file called `${LOGSTASH_HOME}/lib/pluginmanager/install.rb`

Somewhere near the beginning of the file (I placed it just after the "require" statements), place the following line of code:  
`OpenSSL::SSL.const_set(:VERIFY_PEER, OpenSSL::SSL::VERIFY_NONE)`

Now when you run `bin/logstash-plugin install` you will get a big warning message from Ruby telling how you should not be disabling certificate verification, but your plugin should install correctly.

---

<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:** [December 31, 2020, 9:44pm UTC](https://discuss.elastic.co/t/how-to-disable-ssl-certificate-verification-for-logstash-plugin-installing-plugins/257590/2 "2020-12-31T21:44:54Z")

</div>

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