def certificates_der_fixture(root_der_fixture, certificates_fixture):
    """Returns a tuple of valid der-encoded root, intermeidate
    and leaf certificates"""
    leaf_cert, intermediate_cert = certificates_fixture

    return (root_der_fixture, intermediate_cert.dump(), leaf_cert.dump())