def generate_wildcard_pem_bytes():
key = generate_private_key(u'<STR_LIT>')<EOL>name = x509.Name([x509.NameAttribute(NameOID.COMMON_NAME, u'<STR_LIT:*>')])<EOL>cert = (<EOL>x509.CertificateBuilder()<EOL>.issuer_name(name)<EOL>.subject_name(name)<EOL>.not_valid_before(datetime.today() - timedelta(days=<NUM_LIT:1>))<EOL>.not_valid_after(datetime.now() + timedelta(days=<NUM_LIT>))<EOL>.serial_number(int(uuid.uuid4()))<EOL>.public_key(key.public_key())<EOL>.sign(<EOL>private_key=key,<EOL>algorithm=hashes.SHA256(),<EOL>backend=default_backend())<EOL>)<EOL>return b'<STR_LIT>'.join((<EOL>key.private_bytes(<EOL>encoding=serialization.Encoding.PEM,<EOL>format=serialization.PrivateFormat.TraditionalOpenSSL,<EOL>encryption_algorithm=serialization.NoEncryption()),<EOL>cert.public_bytes(serialization.Encoding.PEM)<EOL>))<EOL>
Generate a wildcard (subject name '*') self-signed certificate valid for
10 years.

https://cryptography.io/en/latest/x509/tutorial/#creating-a-self-signed-certificate

:return: Bytes representation of the PEM certificate data