# Run bootstrap behind SSL-intercepting proxy, all SSL connections fail

**URL:** <https://meta.discourse.org/t/run-bootstrap-behind-ssl-intercepting-proxy-all-ssl-connections-fail/31289>\
**Category:** Self-hosting\
**Created:** [July 22, 2015, 10:23am UTC](https://meta.discourse.org/t/run-bootstrap-behind-ssl-intercepting-proxy-all-ssl-connections-fail/31289 "2015-07-22T10:23:03Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![Sirius](https://avatars.discourse-cdn.com/v4/letter/s/ecd19e/32.png) [@Sirius](https://meta.discourse.org/u/Sirius)\
**Post date:** [July 22, 2015, 10:23am UTC](https://meta.discourse.org/t/run-bootstrap-behind-ssl-intercepting-proxy-all-ssl-connections-fail/31289/1 "2015-07-22T10:23:03Z")

</div>

I want to install discourse on a VM that is behind a proxy. But I got the certificate error when the script updates gem. The log info is as following:

```
FAILED

RuntimeError: cd /var/www/discourse && gem update bundler failed with return $
Location of failure: /pups/lib/pups/exec_command.rb:105:in `spawn'
exec failed with the params {"cd"=>"$home", "hook"=>"web", "cmd"=>["gem updat$
03ddefcc67a4576532eaac06b03d799e957dbdb8530cff6ff49331e6a087b3e7
FAILED TO BOOTSTRAP

```

detailed info is as following:

```
[2015-07-22T10:16:57.849945 #45] INFO -- : > cd /var/www/discourse && gem update bundler
ERROR: While executing gem ... (Gem::RemoteFetcher::FetchError)
    SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/specs.4.8.gz)

```

I guess that’s because this host is behind a proxy, and the proxy have replaced the certificate. I was encountered the similar error in git command and I have to modify the launcher script to add

```
 git config --global http.sslverify false

```

to bypass certificate verify. How could I by pass certificate verify for this gem update as well?

---

_[View the full topic](https://meta.discourse.org/t/run-bootstrap-behind-ssl-intercepting-proxy-all-ssl-connections-fail/31289)._
