Bz56396. Some OpenSSL versions do not fail, so ensure we recover only if actually failed to generate 512-bit keys