# Logstash-plugin Installation Error

**URL:** <https://discuss.elastic.co/t/logstash-plugin-installation-error/103928>\
**Category:** Logstash\
**Created:** [October 13, 2017, 4:10pm UTC](https://discuss.elastic.co/t/logstash-plugin-installation-error/103928 "2017-10-13T16:10:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terry\_Yeo](https://avatars.discourse-cdn.com/v4/letter/t/b5a626/32.png) [@Terry\_Yeo](https://discuss.elastic.co/u/Terry_Yeo)\
**Post date:** [October 13, 2017, 4:10pm UTC](https://discuss.elastic.co/t/logstash-plugin-installation-error/103928/1 "2017-10-13T16:10:36Z")

</div>

I tried to install the google pubsub input and elasticsearch output plugins after I install the logstash, however, it raised out the following error:

```
Error Bundler::InstallError, retrying 1/10
An error occurred while installing signet (0.8.0), and Bundler cannot continue.
Make sure that `gem install signet -v '0.8.0'` succeeds before bundling.
WARNING: can not set Session#timeout=(0) no session context
Error Bundler::InstallError, retrying 2/10
An error occurred while installing signet (0.8.0), and Bundler cannot continue.
Make sure that `gem install signet -v '0.8.0'` succeeds before bundling.
WARNING: can not set Session#timeout=(300) no session context
WARNING: can not set Session#timeout=(0) no session context
Error Bundler::Fetcher::CertificateFailureError, retrying 3/10
Could not verify the SSL certificate for https://rubygems.org/quick/Marshal.4.8/logstash-devutils-1.3.4-java.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
WARNING: can not set Session#timeout=(300) no session context
WARNING: can not set Session#timeout=(300) no session context
Error Bundler::Fetcher::CertificateFailureError, retrying 4/10
Could not verify the SSL certificate for https://rubygems.org/quick/Marshal.4.8/logstash-devutils-1.3.4-java.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
WARNING: can not set Session#timeout=(300) no session context
WARNING: can not set Session#timeout=(300) no session context
Error Bundler::Fetcher::CertificateFailureError, retrying 5/10
Could not verify the SSL certificate for https://rubygems.org/quick/Marshal.4.8/logstash-devutils-1.3.4-java.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
WARNING: can not set Session#timeout=(300) no session context
WARNING: can not set Session#timeout=(300) no session context
Error Bundler::Fetcher::CertificateFailureError, retrying 6/10
Could not verify the SSL certificate for https://rubygems.org/quick/Marshal.4.8/logstash-devutils-1.3.4-java.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
WARNING: can not set Session#timeout=(300) no session context
WARNING: can not set Session#timeout=(300) no session context
Error Bundler::Fetcher::CertificateFailureError, retrying 7/10
Could not verify the SSL certificate for https://rubygems.org/quick/Marshal.4.8/logstash-devutils-1.3.4-java.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
WARNING: can not set Session#timeout=(300) no session context
WARNING: can not set Session#timeout=(300) no session context
Error Bundler::Fetcher::CertificateFailureError, retrying 8/10
Could not verify the SSL certificate for https://rubygems.org/quick/Marshal.4.8/logstash-devutils-1.3.4-java.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
WARNING: can not set Session#timeout=(300) no session context
WARNING: can not set Session#timeout=(300) no session context
Error Bundler::Fetcher::CertificateFailureError, retrying 9/10
Could not verify the SSL certificate for https://rubygems.org/quick/Marshal.4.8/logstash-devutils-1.3.4-java.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
WARNING: can not set Session#timeout=(300) no session context
WARNING: can not set Session#timeout=(300) no session context
Error Bundler::Fetcher::CertificateFailureError, retrying 10/10
Could not verify the SSL certificate for https://rubygems.org/quick/Marshal.4.8/logstash-devutils-1.3.4-java.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
WARNING: can not set Session#timeout=(300) no session context
WARNING: can not set Session#timeout=(300) no session context
Too many retries, aborting, caused by Bundler::Fetcher::CertificateFailureError
ERROR: Installation Aborted, message: Could not verify the SSL certificate for https://rubygems.org/quick/Marshal.4.8/logstash-devutils-1.3.4-java.gemspec.rz.
There is a chance you are experiencing a man-in-the-middle attack, but most likely your system doesn't have the CA certificates needed for verification. For information about OpenSSL certificates, see bit.ly/ruby-ssl. To connect without using SSL, edit your Gemfile sources and change 'https' to 'http'.
The command '/bin/sh -c $LOGSTASH_HOME/bin/logstash-plugin install logstash-input-google_pubsub' returned a non-zero code: 1

```

I have tried to change the _'https'_ to _'http'_ in Gemfile or did _gem install signet -v '0.8.0'_. But none of them cannot work. Could anyone helps? 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:** [November 10, 2017, 4:10pm UTC](https://discuss.elastic.co/t/logstash-plugin-installation-error/103928/2 "2017-11-10T16:10:37Z")

</div>

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