ssl_verify_peer': unable to verify the server certificate for "xxxxxxxxxxx" (OpenSSL::SSL::SSLError)
from /usr/local/lib/ruby/gems/3.0.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in run_machine' from /usr/local/lib/ruby/gems/3.0.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:inrun'
error:
ssl_verify_peer': unable to verify the server certificate for "xxxxxxxxxxx" (OpenSSL::SSL::SSLError) from /usr/local/lib/ruby/gems/3.0.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in
run_machine' from /usr/local/lib/ruby/gems/3.0.0/gems/eventmachine-1.2.7/lib/eventmachine.rb:195:in
run'code:
EventMachine.run do brasilApi = EventMachine::HttpRequest.new('https://brasilapi.com.br/api/cep/v2/#{cep_formatado}', ssl: {verify_peer: true}).get awesomeapi_cep = EventMachine::HttpRequest.new('https://cep.awesomeapi.com.br/json/#{cep_formatado}', ssl: {verify_peer: true}).get cepaberto_cep = EventMachine::HttpRequest.new('https://www.cepaberto.com/api/v3/cep?cep=#{cep_formatado}', ssl: {verify_peer: true}).get
not working