# 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:** 1

<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 12, 2019, 12:00am UTC](https://meta.discourse.org/t/oauth2-with-fusionauth-cert-issues/106324/1 "2019-01-12T00:00:17Z")

</div>

I am having certificate issue (looks like right after call back returns from oauth2). Discourse and fusionauth are both behind nginx that listens on 443 and proxies to both via http, and fusionauth is the authenticator that discourse uses (with the discourse-basic-oauth2 plugin)

A call to oauth2 goes to fusionauth, but when the redirect url comes back discord throws error:

`Faraday::SSLError (SSL_connect returned=1 errno=0 state=error: certificate verify failed (unable to get local issuer certificate)) /usr/local/lib/ruby/2.5.0/net/protocol.rb:44:in connect_nonblock`

technically nginx is the only ssl entry, and proxies to both servers on http… but I am assuming discourse is trying to maybe issue requests to pull user info down, maybe, using curl direct, and that what is throwing the error? Do I need to get inside discourse container and update certs inside (though im at latest discourse version already and system certs are up to date)

thank you

---

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