Class ClientSSLCertificateHandler
Custom SSL certificate handler for UnityWebRequest on the client.
Delegates all validation to ClientCertificatePinning which
performs SHA-256(SPKI) pinning plus temporal-validity checks via
BouncyCastle. Configure pins during client bootstrap with
ClientCertificatePinning.Configure(...).
public class ClientSSLCertificateHandler : CertificateHandler, IDisposable
- Inheritance
-
CertificateHandlerClientSSLCertificateHandler
- Implements
- Inherited Members
-
CertificateHandler.Dispose()
Methods
ValidateCertificate(byte[])
Callback, invoked for each leaf certificate sent by the remote server.
protected override bool ValidateCertificate(byte[] certificateData)
Parameters
certificateDatabyte[]Certificate data in PEM or DER format. If certificate data contains multiple certificates, the first one is the leaf certificate.
Returns
- bool
true if the certificate should be accepted, false if not.