# Problem setting up heroku: "Unable to verify SSL certificate for api.heroku.com"

**URL:** <https://www.ruby-forum.com/t/problem-setting-up-heroku-unable-to-verify-ssl-certificate-for-api-heroku-com/206730>\
**Category:** Ruby\
**Created:** [May 8, 2011, 6:15pm UTC](https://www.ruby-forum.com/t/problem-setting-up-heroku-unable-to-verify-ssl-certificate-for-api-heroku-com/206730 "2011-05-08T18:15:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [May 8, 2011, 6:15pm UTC](https://www.ruby-forum.com/t/problem-setting-up-heroku-unable-to-verify-ssl-certificate-for-api-heroku-com/206730/1 "2011-05-08T18:15:52Z")

</div>

Hi all. I’m trying to deploy a test app up to heroku. I’ve got a  
github account, set up with keys (ie i can do ssh removed\_email\_address@domain.invalid ok).  
I’ve set up a heroku account on [heroku.com](http://heroku.com). I’m following the tutorial  
here:

[http://devcenter.heroku.com/articles/quickstart](http://devcenter.heroku.com/articles/quickstart)

and am at step 3. I do “heroku create” and get the prompts for my  
heroku username and password. I enter these, and then get the following  
back:

> > WARNING: Unable to verify SSL certificate for [api.heroku.com](http://api.heroku.com)  
> > To disable SSL verification, run with HEROKU\_SSL\_VERIFY=disable

I’ve googled for this warning and can’t see anything about it anywhere.  
I then googled the HEROKU\_SSL\_VERIFY option and found this page which  
talks about “piggyback ssl”. But this is talking about adding ssl to an  
app, and i don’t even have any apps yet.

Step 2 in that tutorial says "You will need to generate a public SSH key  
and upload it to Heroku. ". I don’t know how to do this - would this be  
done automatically as part of the failing step 3 above?

Basically i’m confused and stuck. Any ideas anyone?  
thanks, max

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [May 8, 2011, 6:34pm UTC](https://www.ruby-forum.com/t/problem-setting-up-heroku-unable-to-verify-ssl-certificate-for-api-heroku-com/206730/2 "2011-05-08T18:34:42Z")

</div>

On Sun, May 8, 2011 at 9:15 AM, Max W.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Hi all. I’m trying to deploy a test app up to heroku.  
> …  
> Step 2 in that tutorial says "You will need to generate a public SSH key  
> and upload it to Heroku. ". I don’t know how to do this …

prompt% heroku help  
…  
keys # show your user’s public  
keys  
keys:add [] # add a public key  
keys:remove # remove a key by name  
(user@host)  
keys:clear # remove all keys  
…

HTH,

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [May 8, 2011, 7:06pm UTC](https://www.ruby-forum.com/t/problem-setting-up-heroku-unable-to-verify-ssl-certificate-for-api-heroku-com/206730/3 "2011-05-08T19:06:25Z")

</div>

Hassan S. wrote in post #997393:

> On Sun, May 8, 2011 at 9:15 AM, Max W.  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Hi all. I’m trying to deploy a test app up to heroku.  
> > …  
> > Step 2 in that tutorial says "You will need to generate a public SSH key  
> > and upload it to Heroku. ". I don’t know how to do this …
> 
> prompt% heroku help  
> …  
> keys # show your user’s public  
> keys  
> keys:add [] # add a public key  
> keys:remove # remove a key by name  
> (user@host)  
> keys:clear # remove all keys  
> …
> 
> HTH,

Thanks Hassan, but i get the same warning when i try to do any of the  
above “keys” actions as well.

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [May 8, 2011, 7:23pm UTC](https://www.ruby-forum.com/t/problem-setting-up-heroku-unable-to-verify-ssl-certificate-for-api-heroku-com/206730/4 "2011-05-08T19:23:32Z")

</div>

On Sun, May 8, 2011 at 10:06 AM, Max W.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Thanks Hassan, but i get the same warning when i try to do any of the  
> above “keys” actions as well.

mmm. What OS/version of SSL are you using?

What happens if you open a browser to [https://api.heroku.com](https://api.heroku.com) ?

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [May 8, 2011, 8:02pm UTC](https://www.ruby-forum.com/t/problem-setting-up-heroku-unable-to-verify-ssl-certificate-for-api-heroku-com/206730/5 "2011-05-08T20:02:27Z")

</div>

On Sun, May 8, 2011 at 10:41 AM, Max W.  
[removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Then when i went back to my app (and its associated rvm, which had the  
> most recent version of the heroku gem installed) i was able to do heroku  
> create, and the other stuff, ok. Kind of odd that i had to go back to  
> an older gem just to upload my public key though - would still like to  
> know what the problem was even though it’s not as pressing any more.

Good that you got past it, but you should open a ticket with Heroku –  
I’ve seen a Heroku gem update break something (unrelated to this issue)  
that previously worked, and it got corrected after I opened a ticket and  
documented the problem.

FWIW,

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [May 8, 2011, 7:41pm UTC](https://www.ruby-forum.com/t/problem-setting-up-heroku-unable-to-verify-ssl-certificate-for-api-heroku-com/206730/6 "2011-05-08T19:41:22Z")

</div>

Hassan S. wrote in post #997400:

> On Sun, May 8, 2011 at 10:06 AM, Max W.  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Thanks Hassan, but i get the same warning when i try to do any of the  
> > above “keys” actions as well.
> 
> mmm. What OS/version of SSL are you using?  
> OS is Ubuntu 9.10  
> i have openssl installed, the version for that is “openssl version  
> OpenSSL 0.9.8g 19 Oct 2007” - is that what you meant?
> 
> What happens if you open a browser to [https://api.heroku.com](https://api.heroku.com) ?  
> That seems fine - i’m still logged in like i was on the non ssl version  
> of the page.

I’ve managed to sort it out i think, by opening a new rvm, downloading  
an old version of the heroku gem (with `gem install heroku -v "<2.0.0"`)  
and doing heroku create in there. This let me upload my public key (i  
had a choice of three - id\_rsa.pub, id\_dsa.pub and identity.pub, maybe  
this was confusing it)?

Then when i went back to my app (and its associated rvm, which had the  
most recent version of the heroku gem installed) i was able to do heroku  
create, and the other stuff, ok. Kind of odd that i had to go back to  
an older gem just to upload my public key though - would still like to  
know what the problem was even though it’s not as pressing any more.

---

<div class="post-metadata">

**Author:** ![cmaxvv](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/85f322/32.png) [@cmaxvv](https://www.ruby-forum.com/u/cmaxvv)\
**Post date:** [May 8, 2011, 8:17pm UTC](https://www.ruby-forum.com/t/problem-setting-up-heroku-unable-to-verify-ssl-certificate-for-api-heroku-com/206730/7 "2011-05-08T20:17:12Z")

</div>

Hassan S. wrote in post #997407:

> On Sun, May 8, 2011 at 10:41 AM, Max W.  
> [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:
> 
> > Then when i went back to my app (and its associated rvm, which had the  
> > most recent version of the heroku gem installed) i was able to do heroku  
> > create, and the other stuff, ok. Kind of odd that i had to go back to  
> > an older gem just to upload my public key though - would still like to  
> > know what the problem was even though it’s not as pressing any more.
> 
> Good that you got past it, but you should open a ticket with Heroku –  
> I’ve seen a Heroku gem update break something (unrelated to this issue)  
> that previously worked, and it got corrected after I opened a ticket and  
> documented the problem.
> 
> FWIW,

Yeah, i’ll do that. Thanks a lot - max
