CertificateHandler
Responsible for rejecting or accepting certificates received on https requests.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Class
- Namespace: UnityEngine.Networking
- Assembly: UnityEngine.UnityWebRequestModule
- Implements: IDisposable
public class CertificateHandler : IDisposable
Remarks
Note: Custom certificate validation is currently implemented for Android, iOS, tvOS, visionOS, and desktop platforms only. To trust certificates on iOS, tvOS, and visionOS platforms, enable arbitrary loads either by enabling unsecured HTTP in Player Settings or explicitly in Info.plist file. For more information, refer to Apple documentation.
Methods
Method | Description |
|---|---|
| Dispose | Signals that this [CertificateHandler] is no longer being used, and should clean up any resources it is using. |
| ValidateCertificate | Callback, invoked for each leaf certificate sent by the remote server. |