summaryrefslogtreecommitdiff
path: root/tests/cert/cert.sh
diff options
context:
space:
mode:
authorKai Engert <kaie@kuix.de>2017-10-12 18:52:00 +0200
committerKai Engert <kaie@kuix.de>2017-10-12 18:52:00 +0200
commit9052b2c01237d51a5ec411a6143a082bacac3f93 (patch)
tree80005d45947f773205e8d2801f3c00bb6f769b8c /tests/cert/cert.sh
parentfb06d0195ec9fda90f0138eb452a68555bfe8093 (diff)
downloadnss-hg-9052b2c01237d51a5ec411a6143a082bacac3f93.tar.gz
Bug 1402410, Backed out changeset b2c26676402a because of test failures
Diffstat (limited to 'tests/cert/cert.sh')
-rwxr-xr-xtests/cert/cert.sh20
1 files changed, 0 insertions, 20 deletions
diff --git a/tests/cert/cert.sh b/tests/cert/cert.sh
index ca0646055..1e7c091e5 100755
--- a/tests/cert/cert.sh
+++ b/tests/cert/cert.sh
@@ -1260,10 +1260,6 @@ MODSCRIPT
CU_ACTION="Setting invalid database password in FIPS mode"
RETEXPECTED=255
certu -W -d "${PROFILEDIR}" -f "${R_FIPSPWFILE}" -@ "${R_FIPSBADPWFILE}" 2>&1
- CU_ACTION="Attempt to generate a key with exponent of 3 (too small)"
- certu -G -k rsa -g 2048 -y 3 -d "${PROFILEDIR}" -z ${R_NOISE_FILE} -f "${R_FIPSPWFILE}"
- CU_ACTION="Attempt to generate a key with exponent of 17 (too small)"
- certu -G -k rsa -g 2048 -y 17 -d "${PROFILEDIR}" -z ${R_NOISE_FILE} -f "${R_FIPSPWFILE}"
RETEXPECTED=0
CU_ACTION="Generate Certificate for ${CERTNAME}"
@@ -1272,20 +1268,6 @@ MODSCRIPT
if [ "$RET" -eq 0 ]; then
cert_log "SUCCESS: FIPS passed"
fi
-
-}
-
-########################## cert_rsa_exponent #################################
-# local shell function to verify small rsa exponent can be used (only
-# run if FIPS has not been turned on in the build).
-##############################################################################
-cert_rsa_exponent()
-{
- echo "$SCRIPTNAME: Verify that small RSA exponents still work =============="
- CU_ACTION="Attempt to generate a key with exponent of 3"
- certu -G -k rsa -g 2048 -y 3 -d "${PROFILEDIR}" -z ${R_NOISE_FILE} -f "${R_FIPSPWFILE}"
- CU_ACTION="Attempt to generate a key with exponent of 17"
- certu -G -k rsa -g 2048 -y 17 -d "${PROFILEDIR}" -z ${R_NOISE_FILE} -f "${R_FIPSPWFILE}"
}
############################## cert_eccurves ###########################
@@ -1995,8 +1977,6 @@ cert_ssl
cert_smime_client
if [[ -n "$NSS_TEST_ENABLE_FIPS" ]]; then
cert_fips
-else
- cert_rsa_exponent
fi
cert_eccurves
cert_extensions