Using openssl instead of M2Crypto

Generating self-signed certificates via openssl so that we don't have to install M2Crypto for it.