search for: verify_mode

Displaying 20 results from an estimated 26 matches for "verify_mode".

2011 Jan 03
4
How to get soap4r to not bother verifying SSL certificate (verify_mode none)?
Using Ruby 1.8.7, Rails 2.3.8. I don''t want it to verify the cert... This is my backtrace: OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed): httpclient (2.1.5.2) lib/httpclient/session.rb:247:in `connect'' httpclient (2.1.5.2) lib/httpclient/session.rb:247:in `ssl_connect'' httpclient
2006 May 06
0
`connect'': undefined method `verify_mode'' for nil:NilClass
Am using Ruby 1.8.4. I am getting this error: /usr/lib/ruby/1.8/net/http.rb:565:in `connect'': undefined method `verify_mode'' for nil:NilClass (NoMethodError) from /usr/lib/ruby/1.8/net/http.rb:555:in `do_start'' from /usr/lib/ruby/1.8/net/http.rb:544:in `start'' from /usr/lib/ruby/1.8/net/http.rb:1031:in `request'' from /usr/lib/ruby/1.8/net/http.rb:840:in...
2008 Dec 10
3
How to stop SOAP4R/OpenSSL requiring cert?
Hi I want to consume some web services that are only available over HTTPS. My method looks like this: def lookup_id myid=params[:id] driver = SOAP::WSDLDriverFactory.new("https://server.com/xxx.wsdl").create_rpc_driver @p=driver.verifyId(AUTH_TOKEN, PIN, myid) end Although this works fine on my local box (with a warning), when deployed to the staging server I get:
2018 Dec 07
2
[PATCH] v2v: -o rhv-upload: Fix upload when using https
....create_default_context(purpose = ssl.Purpose.SERVER_AUTH, - cafile = cafile) + cafile = params['rhv_cafile']) if params['insecure']: context.check_hostname = False context.verify_mode = ssl.CERT_NONE http = HTTPSConnection( destination_url.hostname, destination_url.port, context = context ) elif destination_url.scheme == "http": http = HTTPConnection( destination_url.hostname,...
2007 Mar 29
0
using certificates with ActiveResource
...o get the actual data from the REST service because my xml input gets url-encoded, but that''s ok... I really want to get this working with ActiveResource, not by using Net:HTTP directly. The solution that ultimately made Apache happy with that standalone code was to also set Net::HTTP.verify_mode to OpenSSL::SSL::VERIFY_PEER and to provide the certificate authority file that I used to sign the cert to Net:HTTP and Apache. So, I added these things to environment.rb, giving me: class Net::HTTP def cert OpenSSL::X509::Certificate.new(File.read(RAILS_ROOT + "/config/certs/clie...
2013 Aug 29
4
Weird behaviour using ssl connection (OpenSSL::SSL::SSLError)
Hi guys when I execute the piece of code bellow on RoR console it works fine: url = URI.parse("https://us1.api.mailchimp.com/2.0/helper/ping") request = Net::HTTP::Post.new(url.path) http = Net::HTTP.new(url.host, url.port) http.use_ssl = true http.verify_mode = OpenSSL::SSL::VERIFY_NONE request.body = "{\"apikey\": \"myapikey\"}" response = http.start {|http| http.request(request) } But when I try to use it on my RoR app I get the following error: OpenSSL::SSL::SSLError (SSL_connect returned=1 errno=0 state=unknown stat...
2018 Sep 19
1
Re: [PATCH 2/3] v2v: -o rhv-upload: Only set SSL context for https connections.
...text.load_verify_locations(cafile = params['rhv_cafile']) > This line was never needed. In imageio client we use: context = ssl.create_default_context( purpose=ssl.Purpose.SERVER_AUTH, cafile=cafile) if not secure: context.check_hostname = False context.verify_mode = ssl.CERT_NONE See https://github.com/oVirt/ovirt-imageio/blob/356d224f1124deb3d63125b1f3b3e583839bcbd9/common/ovirt_imageio_common/client.py#L52 So we can replace this with context = ssl.create_default_context(cafile = params.get('rhv_cafile')) > + if destination_url.scheme...
2010 Aug 24
5
Reading pem file in ruby on rails
hi, i have a certificate file in pem format. i need to read the pem file. Need help on how to read the certificate in ruby on rails Thanks -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2010 Jun 09
12
Foreman -- Reporting
Hello All, I don''t seem to be able to get reports to display on the foreman interface. I copied extras/puppet/foreman/files/foreman-report.rb to / usr/lib/ruby/site_ruby/1.8/puppet/reportsforeman.rb, instead of /usr/ lib/ruby/1.8/puppet/reports/foreman.rb. Config: Centos5.4, Apache/ Passenger, Puppet 0.25.4. The reports are coming from the clients, because I can see them in
2018 Sep 20
0
[PATCH v2 2/3] v2v: -o rhv-upload: Only set SSL context for https connections.
...tination_url.scheme == "https": + context = \ + ssl.create_default_context(purpose = ssl.Purpose.SERVER_AUTH, + cafile = cafile) + if params['insecure']: + context.check_hostname = False + context.verify_mode = ssl.CERT_NONE + http = HTTPSConnection( + destination_url.hostname, + destination_url.port, + context = context + ) + elif destination_url.scheme == "http": + http = HTTPConnection( + destination_url.hostname, +...
2018 Dec 07
0
Re: [PATCH] v2v: -o rhv-upload: Fix upload when using https
...urpose = ssl.Purpose.SERVER_AUTH, > - cafile = cafile) > + cafile = params['rhv_cafile']) > if params['insecure']: > context.check_hostname = False > context.verify_mode = ssl.CERT_NONE > http = HTTPSConnection( > destination_url.hostname, > destination_url.port, > context = context > ) > elif destination_url.scheme == "http": > http = HTTPConnection( >...
2012 Jun 06
0
Puppet 2.7.15: Thunderdome
...like it would knock 2.7.16 out until 2.7.16 used some new SSL abilities to distract 2.7.15 and push it over a cliff.) So, look for 2.7.16rc1 later today. The main reason for holding back 2.7.15 were concerns around SSL compatibility between Ruby 1.8 and Ruby 1.9. 1. Ruby 1.8 defaults to an SSL verify_mode of NO_VERIFY while Ruby 1.9 defaults to PEER_VERIFY. This is addressed by specifying which is desired and not using Ruby''s default value. -- You received this message because you are subscribed to the Google Groups "Puppet Developers" group. To post to this group, send email to...
2009 Jul 24
1
Modifying ActiveResource classes
I''ve been struggling with an issue with ActiveResource for a bit now: when a hostname resolves for an ActiveResource request, but there''s no server on the other end to return information, ActiveResource''s timeout value doesn''t work. The request just hangs. After reviewing the ActiveResource code, I''ve realized that this is because the underlying
2006 Jan 30
3
webservice consumption over SSL
Hi, as long as nobody answered to my previous question, i''ll try to write in another way. I have: webservice WSDL link (https://something?WSDL, that''s .net webservice) pem file (certificate, needed to authentificate for gettting data) i need : to consume that webservice without describing API''s for each method (i mean use WSL to construct needed structures or objects).
2011 Aug 19
1
How to post a file via HTTP as multipart/form-data to Facebook?
I would like to post a new photo to a user using `Net::HTTP::multipart` from a Heroku application to Facebook. I have the following JSON object: {"message"=>"My message", "image"=>#<ActionDispatch::Http::UploadedFile:0x00000004242490 @original_filename="neEZYMAnBI.jpg", @content_type="application/octet-stream",
2006 Jun 27
0
Calling SOAP based Web Services over SSL
...ver_options to include ssl options. I also dloaded QuickCert to generate leys and loaded them into my public directory of my web server. That code looked like this: ******************************************************************* def hello opts = {} opts[''protocol.http.ssl_config.verify_mode''] = ''OpenSSL::SSL::VERIFY_PEER'' opts[''protocol.http.ssl_config.client_cert''] = ''public/healeyt/cert_healeyt.pem'' opts[''protocol.http.ssl_config.client_key''] = ''public/healeyt/healeyt_keypair.pem'...
2018 Dec 07
1
Re: [PATCH] v2v: -o rhv-upload: Fix upload when using https
...ER_AUTH, > > - cafile = cafile) > > + cafile = params['rhv_cafile']) > > if params['insecure']: > > context.check_hostname = False > > context.verify_mode = ssl.CERT_NONE > > http = HTTPSConnection( > > destination_url.hostname, > > destination_url.port, > > context = context > > ) > > elif destination_url.scheme == "http": > > h...
2013 Jan 08
6
Fwd: HOW TO USE SSL IN SAVON
HI All, I want to consume the SOAP apis using SSL in the SAVON gem, but I am facing the below error while trying to access the soap services. client = Savon.client(wsdl: "https://xxx?WSDL") client.operations HTTPI GET request to xxxxx (curb) HTTPI::SSLError: Curl::Err::SSLPeerCertificateError In the Savon site <http://savonrb.com/version2.html#globals-ssl> I found that options
2018 Sep 20
7
[PATCH v2 0/3] v2v: -o rhv-upload: Add a test.
v1 was here: https://www.redhat.com/archives/libguestfs/2018-September/msg00121.html v2: - Rewrote patch 2 from scratch so it incorporates Nir's suggestions. - Add fake module to EXTRA_DIST. - Retested. Unfortunately I am no longer able to test the ordinary conversion path because ovirtsdk4 is incompatible with Fedora 29 / Python 3.7:
2019 Nov 18
15
[PATCH v2 00/11] rvh-upload: Various fixes and cleanups
This series extract oVirt SDK and imageio code to make it eaiser to follow the code and improve error handing in open() and close(). Tested with virt-v2v master. Changes since v1: - Rebase on merged patches from v1 - Fix regression introduced by "rhv-upload: Fix cleanup after errors" - Remove "rhv-upload: Try to remove disk on timeout" since it cannot succeed - Add more