selfSignedServerCert_SHA1_RSA_2048: add error handling.
selfSignedServerCert_SHA1_RSA_2048: add error handling.

This adds much needed error handling to the
selfSignedServerCert_SHA1_RSA_2048() function.

This covers thorough checking of return values for calls
into OpenSSL API, as well as strict null checking on values
that one would expect to be non-null.

Better safe than sorry.

Lartza/mumble,Lartza/mumble,Lartza/mumble,Lartza/mumble,Lartza/mumble,Lartza/mumble,Lartza/mumble,Lartza/mumble