Type Alias TrustedCAsCallback
Type Alias
Type Signature
Example
Fetch and use custom set of certificates (Standalone)
NutrientViewer.load({
trustedCAsCallback: function() {
return new Promise((resolve, reject) => {
fetch("/your-certificate.cer")
.then(res => res.arrayBuffer())
.then(cert => resolve([cert]))
.catch(reject)
});
},
// ...
});
Type Declaration
Returns
Promise<(ArrayBuffer | string)[]>
The CA certificates in DER (ArrayBuffer) or PEM (string) format.
On Standalone, by implementing this callback you have a fine grained control over which certificates are going to be used for digital signatures validation.
For more information, see Configuration#trustedCAsCallback