Apache HTTPD 2.4 cannot authenticate "CRYPT" encryption htpasswd/htaccess password

Solution Unverified - Updated -

Issue

  • htpasswd file was created using the operating system's crypt library which performs the check for FIPS mode. It looks like the default algorithm use by crypt (htpasswd -d) is not FIPS compliant which is causing your issue.
[root@example tmp]# /opt/rh/httpd24/root/usr/bin/htpasswd -dbc htpass user1 12345
/opt/rh/httpd24/root/usr/bin/htpasswd: crypt() failed: Operation not permitted

Environment

  • Red Hat Enterprise Linux
    • 7.x

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