TLS: could not load verify locations (file:`/path/to/example.pem',dir:`').

Solution Verified - Updated -

Issue

  • Trying to set file or database containing global trusted Certificate Authority or global client certificates using LDAPTrustedGlobalCert but getting error TLS: could not load verify locations.
  • I am trying to set the directory path and file name of the trusted CA certificates and/or system-wide client certificates mod_ldap should use when establishing an SSL or TLS connection to an LDAP server.
  • /path/to/example.pem is present but still getting TLS: could not load verify locations (file:/path/to/example.pem',dir:').

Environment

  • Red Hat Enterprise Linux (RHEL) 7, 8, 9
    • httpd
  • Red Hat Software Collections (RHSCL) 2.4
    • httpd24
  • Red Hat JBoss Core Services (JBCS)
    • httpd

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