def METHOD_NAME(dummy_register_protocol_detector, key_cert_pair, request):  # noqa: F811, E501
    key_file, cert_file = key_cert_pair
    reactor = Reactor()
    sslctx = SSLContext(cert_file=cert_file, key_file=key_file,
                        ca_certs=cert_file)
    acceptor = MultiProtocolAcceptor(
        reactor,
        '127.0.0.1',
        0,
        sslctx=sslctx
    )
    try:
        t = concurrent.thread(reactor.process_requests)
        t.start()
        (host, port) = acceptor._acceptor.socket.getsockname()[0:2]
        yield (host, port)
    finally:
        acceptor.stop()
        reactor.stop()
        t.join()