SecurityOptions

Options of the addon can be accessed through the static SecurityOptions class:

OCSP Options

OCSP Cache Options

OCSP request caching related options.

OCSP Cache's HTTPRequest Options

OCSP requests are plain old HTTPRequests and every BestHTTP/2 global settings affecting them, but through this options OCSP requests can be further customized.

Database Options

DiskManager Options

Examples

#if !UNITY_WEBGL || UNITY_EDITOR
using BestHTTP.Addons.TLSSecurity;

// To disable the OCSP cache's memory cache:
SecurityOptions.OCSP.OCSPCache.DatabaseOptions.DiskManager.MaxCacheSizeInBytes = 0;

TLSSecurity.Setup();
#endif