Skip to content

Commit c0a4c04

Browse files
committed
Update failed-to-load-resource.md
1 parent beef684 commit c0a4c04

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

faq/failed-to-load-resource.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,25 @@ In this case, if you are trying to access an application that integrates a versi
3333
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.
3434
- Method 3. <a href="{{site.about}}getsupport.html" target="_blank">Contact Dynamsoft</a> for a new MSI for client-side.
3535

36+
- For v17.2 or higher versions, use the new API <a href="{{site.info}}api/Dynamsoft_WebTwainEnv.html#updatecert" target="_blank">UpdateCert</a> to automatically update the client side certificate before it expires.
3637

38+
- If you want to automatically update the certificate, please add following code:
3739

38-
- For v17.2 or higher versions, use the new API <a href="{{site.info}}api/Dynamsoft_WebTwainEnv.html#updatecert" target="_blank">UpdateCert</a> to automatically update the client side certificate before it expires.
40+
```javascript
41+
// Add the code in dynamsoft.webtwain.configure.js file
42+
Dynamsoft.DWT.ServiceCertUpdateURL= "https://demo.dynamsoft.com/DWT/Resources/dist/cert.zip";
43+
```
44+
```javascript
45+
// Add the code in dynamsoft.webtwain.install.js file
46+
Dynamsoft.DWT.UpdateCert(
47+
Dynamsoft.DWT.ServiceCertUpdateURL,
48+
function () {
49+
    },
50+
    function (errorCode, errorString) {
51+
        console.log(errorString);
52+
    }
53+
);
54+
```
3955

4056
<!--
4157

0 commit comments

Comments
 (0)