async def METHOD_NAME():
    subject_alt_names: List[x509.GeneralName] = [x509.UniformResourceIdentifier(f"urn:{HOSTNAME}:foobar:myserver"),
                                                 x509.DNSName(f"{HOSTNAME}")]
    key: RSAPrivateKey = generate_private_key()
    key = await load_private_key(base_private / 'myserver.pem')
    csr: x509.CertificateSigningRequest = generate_app_certificate_signing_request(key,
                                                                                   f"myserver@{HOSTNAME}",
                                                                                   NAMES,
                                                                                   subject_alt_names,
                                                                                   extended=CLIENT_SERVER_USE)
    # key_file = base_private / 'myserver.pem'
    csr_file = base_csr / 'myserver.csr'
    # key_file.write_bytes(dump_private_key_as_pem(key))
    csr_file.write_bytes(csr.public_bytes(encoding=Encoding.PEM))