travis-ci/travis-cli — pull request #2 by evdb (2012-09-28 13:38:45+00:00)
Title: Use https url to retrieve public key

Hello,

When trying to encrypt an env I was getting the following error:

evdb@custard $ travis encrypt mysociety/popit foo=bar

About to encrypt 'foo=bar' for 'mysociety/popit'

There was an error while fetching public key, please check if you entered correct slug

Digging into the code and requesting the non-secure manually leads to a redirection to the secure url. `http://travis-ci.org/mysociety/popit.json` 301s to `https://travis-ci.org/mysociety/popit.json`

This pull request changes the url requested to be the secure one, and it now seems to work:

evdb@custard $ ./bin/travis encrypt mysociety/popit foo=bar

About to encrypt 'foo=bar' for 'mysociety/popit'

Please add the following to your .travis.yml file:

secure: "H/WfWa7eoibxl/lGolJSKYETJGsMPWpgGF+vx0QogQiheNuyZYOxMl8rns5l\nbGPAiFxludAlaPWR+1t/tfWVunHuZMuysGlxdfLxJK+SDBPzD0hJNctT5TtC\naEikldU9U+DvppQESKeSwt1EuN+XMopIjjTQjy9K+eS2A8mGxDs="

Lovely lovely service. Thanks!