[#4479] Requesting addition to IRB (configurable standard output) — Sascha Ebach <se@...>

Hello,

13 messages 2005/02/24
[#4482] Re: Requesting addition to IRB (configurable standard output) — Sam Roberts <sroberts@...> 2005/02/25

Quoting se@digitale-wertschoepfung.de, on Fri, Feb 25, 2005 at 01:22:34AM +0900:

[#4483] Re: Requesting addition to IRB (configurable standard output) — Eric Hodel <drbrain@...7.net> 2005/02/25

On 24 Feb 2005, at 19:51, Sam Roberts wrote:

[#4488] Re: Requesting addition to IRB (configurable standard output) — Sam Roberts <sroberts@...> 2005/02/26

Quoting drbrain@segment7.net, on Sat, Feb 26, 2005 at 02:43:31AM +0900:

[#4489] Re: Requesting addition to IRB (configurable standard output) — Eric Hodel <drbrain@...7.net> 2005/02/26

On 25 Feb 2005, at 16:03, Sam Roberts wrote:

Re: Patch that enables https in open-uri.rb

From: Paul Duncan <pabs@...>
Date: 2005-02-07 18:58:53 UTC
List: ruby-core #4386
* Alexey I. Froloff (sir_raorn@immo.ru) wrote:
> * Tanaka Akira <akr@> [050205 17:25]:
> > The problem is ruby has no CA certificates.
> 
> > If OS provides it, open-uri can support https as follows.
> > (It checks /etc/ssl/certs/ca-certificates.crt which is provided by
> > Debian ca-certificates package.)
> 
> > Any comments?
> Using hardcoded unoverrideable dsitribution-dependant paths in
> library is evil.

Agreed.  I think it would be more appropriate to pass that as an
optional argument, analagous to the way open can take header and proxy
parameters.

So something like this:

CERT_PATH = '/etc/ssl/certs/ca-certificates.crt'
open('https://example.com/stuff', :ca_certs => CERT_PATH) do |f|
 ...

Just my two cents.

> -- 
> Regards,
> Sir Raorn.



-- 
Paul Duncan <pabs@pablotron.org>        OpenPGP Key ID: 0x82C29562
http://www.pablotron.org/               http://www.paulduncan.org/

Attachments (1)

signature.asc (189 Bytes, application/pgp-signature)

In This Thread