> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XNetworkingVerifyServerCertificate

> XNetworkingVerifyServerCertificate

# XNetworkingVerifyServerCertificate

추가적인 인증서 체인 검증을 제공합니다.

## 구문

```cpp theme={null}
HRESULT XNetworkingVerifyServerCertificate(
         void* requestHandle,
         const XNetworkingSecurityInformation* securityInformation
)
```

### 매개 변수

*requestHandle*   \_In\_\
형식: void\*

[HINTERNET](https://learn.microsoft.com/windows/win32/winhttp/hinternet-handles-in-winhttp) 형식의 핸들입니다. 유효한 핸들을 얻으려면 [WinHttpOpenRequest](https://learn.microsoft.com/windows/win32/api/winhttp/nf-winhttp-winhttpopenrequest)를 호출하세요.

*securityInformation*   \_In\_\
형식: [XNetworkingSecurityInformation](/reference/networking/xnetworking/structs/xnetworkingsecurityinformation)\*

`XNetworkingSecurityInformation` 구조체에 대한 포인터입니다. 적절한 포인터를 얻으려면 [XNetworkingQuerySecurityInformationForUrlAsyncResult](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasyncresult) 함수를 호출하세요.

### 반환 값

형식: HRESULT

성공하면 `S_OK`를 반환합니다. 이는 서버 인증서 체인이 유효함을 나타냅니다. 그렇지 않으면 서버 체인을 검증할 수 없음을 나타내는 오류 코드를 반환합니다. 모든 실패는 HTTP 요청에 치명적인 것으로 처리하세요.

## 설명

<Note>이 함수는 시간에 민감한 스레드에서 호출하기에 안전하지 않습니다. 자세한 내용은 [시간에 민감한 스레드](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)를 참조하세요.</Note>

`WINHTTP_CALLBACK_STATUS_SENDING_REQUEST` WinHTTP 콜백 내에서 이 함수를 호출하세요. 콜백과 연결된 WinHTTP 요청 핸들과 함께, [XNetworkingQuerySecurityInformationForUrlAsync](/reference/networking/xnetworking/functions/xnetworkingquerysecurityinformationforurlasync)에 대한 이전 호출에서 캐시된 `XNetworkingSecurityInformation` 구조체를 전달하세요. 콜백에 대한 추가 정보는 [WinHttpSendRequest](https://learn.microsoft.com/windows/win32/api/winhttp/nf-winhttp-winhttpsendrequest)를 참조하세요.

`XNetworkingVerifyServerCertificate` 함수가 실패하면 게이밍 런타임이 서버에 대한 손상된 연결을 감지했을 가능성이 높습니다. 이 경우, 손상된 서버로 데이터가 전송되지 않도록 콜백이 반환되기 전에 즉시 WinHTTP 요청 핸들을 닫아야 합니다.

모범 사례로, 콘텐츠나 프로토콜에 관계없이 모든 타이틀 통신은 보안이 유지되어야 합니다. 타이틀은 모든 타이틀 통신에 대해 기밀성, 무결성 및 인증을 제공해야 합니다. 자세한 내용은 [통신 보안 개요(NDA 항목)](/build/game-principles/security/communication-security-overview)를 참조하세요.

## 요구 사항

**헤더:** XNetworking.h

**라이브러리:** xgameruntime.lib

**지원 플랫폼:** Windows, XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## 개념 문서

* [WinHTTP 개요](/build/console-features/networking/web-requests/intro-winhttp)
* [시간에 민감한 스레드](https://learn.microsoft.com/gaming/gdk/docs/gdk-dev/console-dev/overviews/threads/time-sensitive-threads)

## 함께 보기

[HTTP 및 WebSockets](/build/console-features/networking/web-requests/http-networking)\
[XNetworking](/reference/networking/xnetworking/xnetworking_members)


## Related topics

- [WinHTTP 개요](/ko/build/console-features/networking/web-requests/intro-winhttp.md)
- [XNetworking](/ko/reference/networking/xnetworking/xnetworking_members.md)
- [certificate_deleted](/ko/services/playfab/api-references/events/MultiplayerServers/certificate-deleted.md)
- [certificate_uploaded](/ko/services/playfab/api-references/events/MultiplayerServers/certificate-uploaded.md)
- [vm_game_certificates_deployed](/ko/services/playfab/api-references/events/MultiplayerServers/vm-game-certificates-deployed.md)
