def METHOD_NAME(endpoint, host):
    subject_dict = get_server_certificate_subject(endpoint.public_ip, host, endpoint.port_ssl)
    assert subject_dict[b"C"] == b"GB"
    assert subject_dict[b"ST"] == b"Cambridgeshire"
    assert subject_dict[b"O"] == b"nginx"
    assert subject_dict[b"CN"] == b"cafe.example.com"