def make_rsa_keypair(bits):
private_key = rsa.generate_private_key(<EOL>public_exponent=<NUM_LIT>,<EOL>key_size=bits,<EOL>backend=default_backend(),<EOL>)<EOL>private_pem = private_key.private_bytes(<EOL>encoding=serialization.Encoding.PEM,<EOL>format=serialization.PrivateFormat.TraditionalOpenSSL,<EOL>encryption_algorithm=serialization.NoEncryption(),<EOL>)<EOL>public_pem = private_key.public_key().public_bytes(<EOL>encoding=serialization.Encoding.PEM,<EOL>format=serialization.PublicFormat.SubjectPublicKeyInfo,<EOL>)<EOL>return private_pem, public_pem<EOL>
Generate an RSA keypair.

    Args:
        bits (int): number of bits to use for the key.

    Returns:
        (private_key, public_key) - both as PEM encoded strings