From 64c3d615dcf22eb38f89a66f188232e7dfd4ccc1 Mon Sep 17 00:00:00 2001 From: kyle-ds <51097593+kyle-ds@users.noreply.github.com> Date: Mon, 27 Feb 2023 12:54:18 -0800 Subject: [PATCH 1/2] Update Dynamsoft_WebTwainEnv.md Change demo domain --- info/api/Dynamsoft_WebTwainEnv.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/info/api/Dynamsoft_WebTwainEnv.md b/info/api/Dynamsoft_WebTwainEnv.md index 57073333..f363a22d 100644 --- a/info/api/Dynamsoft_WebTwainEnv.md +++ b/info/api/Dynamsoft_WebTwainEnv.md @@ -180,7 +180,7 @@ UpdateCert( // overwrite the following function in dynamsoft.webtwain.install.js Dynamsoft.OnSSLCertInfo = function (sslExpiredDate) { console.log(sslExpiredDate); - Dynamsoft.DWT.UpdateCert("https://xxx.com/cert.zip", + Dynamsoft.DWT.UpdateCert("https://domainlocation.com/cert.zip", function () { console.log("OK"); }, function (errorCode, errorString) { console.log(errorString);} ); @@ -267,4 +267,4 @@ Specify the source of the loader bar image. Check out more on [HTMLImageElement. #### `loaderBarClassName` -Specify the class name of the DIV element that contains the loader bar. With this class, you can customize the loader bar even further with CSS. \ No newline at end of file +Specify the class name of the DIV element that contains the loader bar. With this class, you can customize the loader bar even further with CSS. From eda034eea34e7b4eeddc16c65683b2941cd78c1d Mon Sep 17 00:00:00 2001 From: ztyyLV <97287824+ztyyLV@users.noreply.github.com> Date: Fri, 3 Mar 2023 11:27:34 +0800 Subject: [PATCH 2/2] Update failed-to-load-resource.md --- faq/failed-to-load-resource.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/faq/failed-to-load-resource.md b/faq/failed-to-load-resource.md index e26f51d5..40cb4005 100644 --- a/faq/failed-to-load-resource.md +++ b/faq/failed-to-load-resource.md @@ -34,7 +34,7 @@ By default, “127.0.0.1” is used for service connection. "127.0.0.1" uses a s Set back to self-signed certificate "127.0.0.1" by comment the line `Dynamsoft.WebTwainEnv.Host = "local.dynamsoft.com"` or `Dynamsoft.DWT.Host="local.dynamsoft.com"` out. No need to worry about the expiry date of the certificate anymore. -- **[Highly Recommend] High Level Security Requirement** +- **High Level Security Requirement** 1. Set back to "127.0.0.1" by comment the line `Dynamsoft.WebTwainEnv.Host = "local.dynamsoft.com"` or `Dynamsoft.DWT.Host="local.dynamsoft.com"` out. 2. Replace the certificate of "127.0.0.1" with your own domain certificate and build Service MSI yourself. More information refer to [How can I change the certificate of the Dynamsoft Service?](https://www.dynamsoft.com/web-twain/docs/faq/change-dynamsoft-service-certificate.html) @@ -45,7 +45,7 @@ By default, “127.0.0.1” is used for service connection. "127.0.0.1" uses a s > Note: the new certificate from Dynamsoft will expire on December 8th, 2023. This means you must 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, you can use the new API UpdateCert to automatically update 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: +