Configuration of custom CA-bundle for mod_auth_openidc module in Apache HTTPD

Solution Verified - Updated -


  • How to configure custom ca-bundle for mod_auth_openidc module to trust internal CA ?
  • We are getting below errors when configuring internal CA for the mod_auth_openidc module.
[Mon Jul 20 2020] [auth_openidc:error] [client] oidc_util_http_call: curl_easy_perform() failed on: 
(Peer's certificate issuer has been marked as not trusted by the user.), referer:
[Mon Jul 20 2020] [auth_openidc:warn] [client] oidc_proto_token_endpoint_request: error when calling the token endpoint (, referer:
[Mon Jul 20 2020] [auth_openidc:error] [client] oidc_proto_resolve_code_and_validate_response: failed to resolve the code, referer:


  • Red Hat Enterprise Linux (RHEL)
    • 7.x
  • Apache HTTPD
    • 2.4.x
  • mod_auth_openidc
  • libcurl

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content