Skip to main content

All Questions

Tagged with
Filter by
Sorted by
Tagged with
1 vote
1 answer
1k views

Ruby 2.7 and TLS 1.3 with RestClient not working

I'm having problems trying to request an endpoint that is using TLS 1.3 require 'base64' require 'openssl' require 'rest-client' auth_payload = { grant_type: 'client_credentials', scope: '...
Eduardo Azevedo's user avatar
2 votes
1 answer
3k views

Rest-Client gem RoR, Getting SSL wrong version error

I want to build a cli ruby app which sends requests to Rails API server. I wanted to use rest-client gem to do that. Every time i use RestClient.post I get the following error SSL_connect ...
aJEFFIKa's user avatar
0 votes
0 answers
1k views

OpenSSL::SSL::SSLError - read finished A: decryption failed or bad record mac

I am using RestClient to access an external API using a certificate available. I have useed it like this, require 'rest-client' p12 = OpenSSL::PKCS12.new(File.read('/root/cert.p12'), 'password') ...
Balaji Ravichandran's user avatar
0 votes
1 answer
114 views

OpenSSL error - RestClient Gem - Python WSGI

Issue : I'm struggling on a SSL issue. I'm trying to connect to a Web server for a Python application but each time I execute a request, I have this error : RestClient::SSLCertificateNotVerified: ...
Uelb's user avatar
  • 4,073
0 votes
0 answers
1k views

RestClient::SSLCertificateNotVerified error when trying to create a simple POST request

I am learning Ruby and trying to learn how to use rest-client to make API calls. I am using Foobot's API (found here: https://api.foobot.io) because it is really simple and open. Here is the full ...
Impulso's user avatar
  • 27
0 votes
2 answers
1k views

Ruby client for 2-way ssl authentication

I have java web service supports 2-way ssl auth. So I have client key store (client.p12) with server certificate in trusted store and server key store with client cert in trusted store. I can easily ...
Normal's user avatar
  • 1,357
7 votes
2 answers
22k views

RestClient.get returning certificate verify failed

I am trying hit an internal testing API server using RestClient and Ruby v. 2.2.1. This is essentially the code: url = "https://10.10.0.10/thing/i/want/to/get" header = { :content_type => "...
kroe761's user avatar
  • 3,514
7 votes
1 answer
14k views

RestClient failing to GET resource using SSL client certificate

I'm trying to use RestClient to retrieve a page that's secured using an SSL client certificate. My code is as follows: require 'restclient' p12 = OpenSSL::PKCS12.new(File.read('client.p12'), '...
Duncan Bayne's user avatar
  • 3,941
1 vote
1 answer
664 views

SSL Connection error in Ruby 1.9.3-p392+

In Ruby 1.9.3-p385 or earlier, I can successfully run the following piece of code: require 'uri' require 'net/http' uri = URI('https://secure.example.com') http = Net::HTTP.new(uri.host, uri.port) ...
Jason's user avatar
  • 450
2 votes
2 answers
4k views

getting SSL_connect ... sslv3 alert handshake failure when using .p12 file ruby

I'm trying to use a p12 file and password to open an https page using RestClient in ruby. p12 = OpenSSL::PKCS12.new(File.read("#{RAILS_ROOT}/file.p12"), "pass") resp = RestClient::...
Uri Benaya's user avatar