Apache HTTPD 2.4 cannot authenticate "CRYPT" encryption htpasswd/htaccess password
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.