<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def generateCertificate(cls):
 """ Create and return an X.509 certificate and corresponding private key. :rtype: RTCCertificate """

        key = generate_key()
        cert = generate_certificate(key)
        return cls(key=key, cert=cert)