oidc-wp / openid-connect-generic

WordPress plugin to provide an OpenID Connect Generic client
https://wordpress.org/plugins/daggerhart-openid-connect-generic/
261 stars 153 forks source link

New Cert throws error: SSL certificate problem: unable to get local issuer certificate #550

Closed ryan-adler closed 4 months ago

ryan-adler commented 4 months ago

Describe the bug Yesterday we renewed our TLS certificate, and deployed it to our Azure Application Gateway as per usual. The gateway is a reverse proxy in front of the Wordpress installation, and the installation itself has a different TLS certificate internally which is not exposed to end-users. Once this new certificate was installed, the plugin blocked users with the message: SSL certificate problem: unable to get local issuer certificate

Disabling the option for SSL Verify in the plugin "resolves" the issue, but we would like to have it working as it was before, since this is not really the recommended way to have this working.

To Reproduce This started after installing a new certificate in the reverse proxy.

Expected behavior We expected that a certificate obtained from a well-known CA (and the same we used previously) should not be blocked by the SSL verification.

Isolating the problem (mark completed items with an [x]):

WordPress Environment

ryan-adler commented 4 months ago

After investigation, this seems to be related to the host machine, rather than the app. curl command verifies that one of the intermediate certs is not in the trusted store.