From 4c5f2ad2eb0f4f2c24b9892b40a8f3c449103120 Mon Sep 17 00:00:00 2001
From: ztyyLV <97287824+ztyyLV@users.noreply.github.com>
Date: Thu, 23 Feb 2023 15:41:15 +0800
Subject: [PATCH 1/3] Update failed-to-load-resource.md
---
faq/failed-to-load-resource.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/faq/failed-to-load-resource.md b/faq/failed-to-load-resource.md
index 2ae6a6ea..17b3b7a0 100644
--- a/faq/failed-to-load-resource.md
+++ b/faq/failed-to-load-resource.md
@@ -36,7 +36,7 @@ Note: the new certificate from Dynamsoft will expire on December 8th, 2023. This
- 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:
```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 () {
From 1c7ce210d6bf6c405bc568883fc613430e3ab6cf Mon Sep 17 00:00:00 2001
From: ztyyLV <97287824+ztyyLV@users.noreply.github.com>
Date: Thu, 23 Feb 2023 15:45:33 +0800
Subject: [PATCH 2/3] Update failed-to-load-resource.md
---
faq/failed-to-load-resource.md | 1 +
1 file changed, 1 insertion(+)
diff --git a/faq/failed-to-load-resource.md b/faq/failed-to-load-resource.md
index 17b3b7a0..44cb1f42 100644
--- a/faq/failed-to-load-resource.md
+++ b/faq/failed-to-load-resource.md
@@ -40,6 +40,7 @@ Note: the new certificate from Dynamsoft will expire on December 8th, 2023. This
Dynamsoft.DWT.UpdateCert(
"https://demo.dynamsoft.com/DWT/Resources/dist/cert.zip",
function () {
+ //Success callback
},
function (errorCode, errorString) {
console.log(errorString);
From a7dc16147857b93a4079f5e427858fbdff9e9aa7 Mon Sep 17 00:00:00 2001
From: ztyyLV <97287824+ztyyLV@users.noreply.github.com>
Date: Thu, 23 Feb 2023 15:49:08 +0800
Subject: [PATCH 3/3] Update failed-to-load-resource.md
---
faq/failed-to-load-resource.md | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/faq/failed-to-load-resource.md b/faq/failed-to-load-resource.md
index 44cb1f42..8d79823f 100644
--- a/faq/failed-to-load-resource.md
+++ b/faq/failed-to-load-resource.md
@@ -33,7 +33,7 @@ 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) { // Automatically updates 15 days before expiration