# Oauth2 with fusionauth cert issues

**URL:** <https://meta.discourse.org/t/oauth2-with-fusionauth-cert-issues/106324>\
**Category:** Self-hosting\
**Created:** [January 12, 2019, 12:00am UTC](https://meta.discourse.org/t/oauth2-with-fusionauth-cert-issues/106324 "2019-01-12T00:00:17Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![danchik](https://avatars.discourse-cdn.com/v4/letter/d/e19b73/32.png) [@danchik](https://meta.discourse.org/u/danchik)\
**Post date:** [January 17, 2019, 1:29am UTC](https://meta.discourse.org/t/oauth2-with-fusionauth-cert-issues/106324/3 "2019-01-17T01:29:38Z")

</div>

It was the ruby trying to verify peer cert when getting the token and user info after being authorized.

I ended up adding the intermediate cert for our server directly into /usr/lib/ssh/cert.pem via app.yaml

```
-file:
  path: /usr/lib/ssh/cert.pem
  contents: |
     ------ the cert part.....  

```

though i originally wanted to just copy it from outside into container at the ./launcher rebuild app step but I couldn’t find a way to refer to external file inside app.yaml

---

_[View the full topic](https://meta.discourse.org/t/oauth2-with-fusionauth-cert-issues/106324)._
