Using openssl instead of M2Crypto

Generating self-signed certificates via openssl so that we don't have to install M2Crypto for it.

Currently testing - do not merge in at this time.