Sha256: 2b97d93c86ea56da3b164238bc760a57388da1912d1570ff0809a830b406de2b

Contents?: true

Size: 1.69 KB

Versions: 54

Compression:

Stored size: 1.69 KB

Contents

Honeybadger Resources
==================

Honeybadger has an SSL mode available to paying plans. SSL Certificate Authority (CA) certificates are not kept current by default on many environments. When CA certs are stale, Honeybadger cannot verify Honeybadger's production SSL cert and error reports fail. To avoid this, we now package local CA certs. The production of these certs is detailed here.

Building ca-bundle.crt
----------------------

From https://gist.github.com/996292.

If you want to use curl or net-http/open-uri to access https resources, you will often (always?) get an error, because they don't have the large number of root certificates installed that web browsers have.

You can manually install the root certs, but first you have to get them from somewhere. [This article](http://notetoself.vrensk.com/2008/09/verified-https-in-ruby/) gives a nice description of how to do that. The [source of the cert files](http://curl.haxx.se/ca/cacert.pem) it points to is hosted by the curl project, who kindly provide it in the .pem format.

**problem:** Sadly, ironically, and comically, it's not possible to access that file via https! Luckily, the awesome curl project does provide us with the script that they use to produce the file, so we can do it securely ourselves. Here's how.

1. `git clone https://github.com/bagder/curl.git`
2. `cd curl/lib`
3. edit `mk-ca-bundle.pl` and change:

    ```perl
    my $url = 'http://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1';
    ```

    to

    ```perl
    my $url = 'https://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1';
    ```

    (change `http` to `https`)
4. `./mk-ca-bundle.pl`

Ta da!

Version data entries

54 entries across 54 versions & 1 rubygems

Version Path
honeybadger-1.16.7 resources/README.md
honeybadger-1.16.6 resources/README.md
honeybadger-1.16.5 resources/README.md
honeybadger-1.16.4 resources/README.md
honeybadger-1.16.3 resources/README.md
honeybadger-1.16.2 resources/README.md
honeybadger-1.16.1 resources/README.md
honeybadger-1.16.0 resources/README.md
honeybadger-1.15.3 resources/README.md
honeybadger-1.15.2 resources/README.md
honeybadger-1.15.1 resources/README.md
honeybadger-1.15.0 resources/README.md
honeybadger-1.14.0 resources/README.md
honeybadger-1.13.2 resources/README.md
honeybadger-1.13.1 resources/README.md
honeybadger-1.13.0 resources/README.md
honeybadger-1.12.0.beta3 resources/README.md
honeybadger-1.12.0.beta2 resources/README.md
honeybadger-1.11.2 resources/README.md
honeybadger-1.11.1 resources/README.md