Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ERROR: While executing gem ... (OpenSSL::X509::StoreError)

I tried to install serialport into Windows 7 as administrator however, I am facing below error:

C:\Sites>gem install serialport
ERROR: While executing gem ... (OpenSSL::X509::StoreError)

I've tried the following, but they have not helped:

  • OpenSSL::X509::StoreError: cert already in hash table?
  • Where is Ruby looking for SSL_CERT_FILE?

I have tried to find those solution from online. However, it still cant work. Any ideas?

Below are gem environment for my PC:

C:\Sites>gem env
RubyGems Environment:
  - RUBYGEMS VERSION: 2.2.2
  - RUBY VERSION: 2.1.5 (2014-11-13 patchlevel 273) [i386-mingw32]
  - INSTALLATION DIRECTORY: C:/RailsInstaller/Ruby2.1.0/lib/ruby/gems/2.1.0
  - RUBY EXECUTABLE: C:/RailsInstaller/Ruby2.1.0/bin/ruby.exe
  - EXECUTABLE DIRECTORY: C:/RailsInstaller/Ruby2.1.0/bin
  - SPEC CACHE DIRECTORY: C:/Users/5004118294/.gem/specs
  - RUBYGEMS PLATFORMS:
  - ruby
  - x86-mingw32

C:\Sites>gem which openssl
openssl Directory: C:\RailsInstaller\Ruby2.1.0\ruby\2.1.0\openssl.rb

Thanks

like image 903
906 Avatar asked Sep 13 '26 04:09

906


1 Answers

May be the "SSL_CERT_FILE" environment variable is wrong. Just delete the variable and try.

like image 154
Maheshkumar Avatar answered Sep 14 '26 18:09

Maheshkumar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!