diff --git a/faq/failed-to-load-resource.md b/faq/failed-to-load-resource.md index 2ae6a6ea..8d79823f 100644 --- a/faq/failed-to-load-resource.md +++ b/faq/failed-to-load-resource.md @@ -33,13 +33,14 @@ In this case, if you are trying to access an application that integrates a versi Note: the new certificate from Dynamsoft will expire on December 8th, 2023. This means you will need to update the certificate again after this certificate expires. - Method 3. Contact Dynamsoft for a new MSI for client-side. -- For v17.2 or higher versions, use the new API UpdateCert to automatically update the client side certificate before it expires. **Please go to dynamsoft.webtwain.install.js file and search the keyword "OnSSLCertInfo"**, add the following lines of code: +- For v17.2 or higher versions, use the new API UpdateCert to automatically update the client side certificate before it expires. **Please go to dynamsoft.webtwain.install.js file in the Resource Folder and search the keyword "OnSSLCertInfo"**, add the following lines of code: ```javascript Dynamsoft.OnSSLCertInfo = function (sslExpiredDate) { - if ((sslExpiredDate - new Date()) / 86400000 < 15) { + if ((sslExpiredDate - new Date()) / 86400000 < 15) { // Automatically updates 15 days before expiration Dynamsoft.DWT.UpdateCert( "https://demo.dynamsoft.com/DWT/Resources/dist/cert.zip", function () { + //Success callback }, function (errorCode, errorString) { console.log(errorString);