Table of Contents

Class ClientSSLCertificateHandler

Namespace
FishMMO.Client
Assembly
FishMMO.Client.dll

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
CertificateHandler
ClientSSLCertificateHandler
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

certificateData byte[]

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.