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

git-svn-id: https://svn.apache.org/repos/asf/tomcat/native/branches/1.1.x@1588429 13f79535-47bb-0310-9956-ffa450edef68