'Create and return an SslCertificate in dictionary format.'

@staticmethod
def make_ssl_cert(name):

    key = crypto.PKey()
    key.generate_key(crypto.TYPE_RSA, 2048)
    cert = crypto.X509()
    cert.get_subject().C = 'US'
    cert.get_subject().ST = 'New    York'
    cert.get_subject().L = 'New    York    City'
    cert.get_subject().O = 'Google'
    cert.get_subject().OU = 'Spinnaker'
    cert.get_subject().CN = 'localhost'
    cert.set_serial_number(4096)
    cert.gmtime_adj_notBefore(0)
    cert.gmtime_adj_notAfter(((24 * 60) * 60))
    cert.set_issuer(cert.get_subject())
    cert.set_pubkey(key)
    cert.sign(key, 'sha1')
    return {'name': name, 'privateKey': crypto.dump_privatekey(crypto.FILETYPE_PEM, key), 'certificate': crypto.dump_certificate(crypto.FILETYPE_PEM, cert)}
