Red Hat Bugzilla – Bug 965656
self-test uses RSA keys with 512 bits (which is not FIPS 140-2 approved)
Last modified: 2015-06-27 02:47:16 EDT
Description of problem:
Self-test (also known as 'make check') uses RSA keys of length 512 bits:
# Create a SSL key
/usr/bin/openssl req -newkey rsa:512 -keyout "$workdir"/key1 -nodes \
-x509 -days 2 -out "$workdir"/key3 2>/dev/null <<EOF
However, in FIPS "mode" each RSA key is expected to have 1024 or more bits and hence self-tests fails when openssl FIPS 140-2 approved mode is turned on.
Version-Release number of selected component (if applicable):
100% (with FIPS mode enabled)
Steps to Reproduce:
1. OPENSSL_FORCE_FIPS_MODE=1 make check
Traceback (most recent call last):
File "./tests/default_pw_test.py", line 15, in <module>
admin = libuser.admin(prompt = prompt_callback)
The problem can be fixed easily by raising bit-length to 1024 or more.
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated
in the current release, Red Hat is unable to address this
request at this time.
Red Hat invites you to ask your support representative to
propose this request, if appropriate, in the next release of
Red Hat Enterprise Linux.
Fixed in libuser-0.56.13-7.el6_6 for #1235517; not a duplicate of that bug but I can’t add the bug to the build at the moment,
*** This bug has been marked as a duplicate of bug 1235517 ***