Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

1.3K
Visualizações
SSL verification error when running `gem install bundler` on fresh MacBookPRO M1

Successfully installed asdf install ruby 2.6.6 following this post on my fresh MacBook Pro M1 2021, and trying to run gem install bundler, but getting this:

MacBook-Pro ~ % gem install bundler                                                           
ERROR:  SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR:  You must add /OU=GlobalSign Root CA - R3/O=GlobalSign/CN=GlobalSign to your local trusted store
ERROR:  SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR:  You must add /OU=GlobalSign Root CA - R3/O=GlobalSign/CN=GlobalSign to your local trusted store
ERROR:  SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR:  You must add /OU=GlobalSign Root CA - R3/O=GlobalSign/CN=GlobalSign to your local trusted store
ERROR:  Could not find a valid gem 'bundler' (>= 0), here is why:
  Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate) (https://rubygems.org/specs.4.8.gz)
ERROR:  SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR:  You must add /OU=GlobalSign Root CA - R3/O=GlobalSign/CN=GlobalSign to your local trusted store
ERROR:  SSL verification error at depth 1: unable to get local issuer certificate (20)
ERROR:  You must add /OU=GlobalSign Root CA - R3/O=GlobalSign/CN=GlobalSign to your local trusted store

I tried to open Mac's Keychain Access window and specify Always Trust option for every GlobalSign certificate, but no luck.

OS: MacOS Monterey 12.0.1

ruby -v: 2.6.6

gem -v: 3.0.3

Homebrew: 3.3.4

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

I also followed that guide, and ran into this issue. Try this: check directory /opt/homebrew/etc see if you have openssl@1.1 if not, you probably need to reinstall using brew reinstall openssl@1.1. openssl1.1 is what i use for ruby 2.6.5, you might need to check that for your ruby version.

Also, i am not entirely sure about this, but I also added a couple more env variables to the ~/zshrc file following this guide. Be sure you are changing the "openssl@1.0" to "openssl@1.1" or whatever your ruby version uses.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda