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
The CA certificates in DER (ArrayBuffer) or PEM (string) format.
ArrayBuffer
string
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) }); }, // ...}); Copy
NutrientViewer.load({ trustedCAsCallback: function() { return new Promise((resolve, reject) => { fetch("/your-certificate.cer") .then(res => res.arrayBuffer()) .then(cert => resolve([cert])) .catch(reject) }); }, // ...});
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