Skip to content

Commit 38a91d6

Browse files
authored
Merge pull request #574 from ztyyLV/Jackson-branch
Jackson branch
2 parents 166147b + 6d1f8ad commit 38a91d6

File tree

5 files changed

+33
-15
lines changed

5 files changed

+33
-15
lines changed

faq/failed-to-load-resource.md

Lines changed: 23 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -19,31 +19,43 @@ You get an error message that says **"Failed to load resource: net::ERR_CERT_DAT
1919

2020
### Cause
2121

22-
By default, we use "127.0.0.1" for service connection. However, you may use our "local.dynamsoft.com" certificate by setting **Dynamsoft.WebTwainEnv.Host = "local.dynamsoft.com"** or **Dynamsoft.DWT.Host="local.dynamsoft.com"**.
22+
By default, 127.0.0.1” is used for service connection. "127.0.0.1" uses a self-signed certificate because it is an internal IP address, if your environment requires high level security, self-signed certificates may not be accepted. Moreover, Android OS or Chrome OS does not accept connection between browsers and Dynamsoft Service via "127.0.0.1".
2323

24-
Ref: <a href="{{site.faq}}how-come-would-you-need-local.dynamsoft.com.html" target="_blank">In which cases would I use local.dynamsoft.com instead of 127.0.0.1?</a>
24+
1. In case, you used our expired certificate - local.dynamsoft.com, as an official domain which uses a VeriSign’ed certificate. The old "local.dynamsoft.com" certificate expired on <font color=red>January 9th, 2023</font> and the new certificate will expire on <font color=red>December 8th, 2023</font>
25+
> ___Please note:___ _all official certificates issued by 3rd party come with an expiry date - generally one year. This means that each year the certificate will need to be updated if local.dynamsoft.com is used._
2526
26-
In this case, if you are trying to access an application that integrates a version of Dynamic Web TWAIN V15.3 ~ V17.2.5, you will get the error. Because the old "local.dynamsoft.com" certificate expired on <font color=red>January 9th, 2023</font>.
27+
2. Your own domain certificate expired.
2728

28-
### Resolution
29+
<!-- In this case, if you are trying to access an application that integrates a version of Dynamic Web TWAIN V15.3 ~ V17.2.5, you will get the error. Because the old "local.dynamsoft.com" certificate expired on <font color=red>January 9th, 2023</font>. -->
2930

30-
- For v17.1.1 or older versions, choose one of the following approaches:
31+
### Resolution
32+
33+
- **No High Level Security Requirement**:
34+
35+
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.
36+
37+
- **[Highly Recommend] High Level Security Requirement**
38+
39+
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.
40+
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).
41+
42+
<!-- - **[Not Recommend] If you have to use "local.dynamsoft.com", the following methods can be taken:**
3143
- Method 1. Upgrade to V18.0+ which comes with a valid certificate
32-
- Method 2. If you must fix the issue on a few client machines immediately, manually update the following cert files on the client-side machine. Click <a href="https://tst.dynamsoft.com/public/download/dwt/newcert/local.dynamsoft.com/newcert.zip" target="_blank">here</a> to download the new certificate and use the new server.pem.ldsc & server_key.pem.ldsc to replace the old one under **`C:\Windows\SysWOW64\Dynamsoft\DynamsoftService(DynamsoftServicex64)\cert`**.
33-
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.
34-
- Method 3. <a href="{{site.about}}getsupport.html" target="_blank">Contact Dynamsoft</a> for a new MSI for client-side.
44+
- Method 2. If you must fix the issue on a few client machines immediately, manually update the following cert files on the client-side machine. Click <a href="https://tst.dynamsoft.com/public/download/dwt/newcert/local.dynamsoft.com/newcert.zip" target="_blank">here</a> to download the new certificate and use the new server.pem.ldsc & server_key.pem.ldsc to replace the old one under **`C:\Windows\SysWOW64\Dynamsoft\DynamsoftService(DynamsoftServicex64)\cert`**.
45+
> Note: the new certificate from Dynamsoft will expire on <font color=red>December 8th, 2023</font>. This means you must update the certificate again after this certificate expires.
46+
- Method 3. <a href="{{site.about}}getsupport.html" target="_blank">Contact Dynamsoft</a> for a new MSI for client-side. -->
3547
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. **Please go to dynamsoft.webtwain.install.js file in the Resource Folder and search the keyword "OnSSLCertInfo"**, add the following lines of code:
48+
- For v17.2 or higher versions, you can use the new API <a href="{{site.info}}api/Dynamsoft_WebTwainEnv.html#updatecert" target="_blank">UpdateCert</a> 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:
3749
```javascript
3850
Dynamsoft.OnSSLCertInfo = function (sslExpiredDate) {
3951
if ((sslExpiredDate - new Date()) / 86400000 < 15) { // Automatically updates 15 days before expiration
4052
Dynamsoft.DWT.UpdateCert(
41-
"https://demo.dynamsoft.com/DWT/Resources/dist/cert.zip",
53+
"Url to download the new certificate.", //E.g. http://xxx.com/cert.zip. server.pem.ldsc & server_key.pem.ldsc should be in cert.zip.
4254
function () {
4355
//Success callback
4456
},
4557
function (errorCode, errorString) {
46-
console.log(errorString);
58+
console.log(errorString);
4759
}
4860
);
4961
}

faq/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ permalink: /faq/
285285

286286
<li><a href="{{site.faq}}service-backward-compatibility.html">Can I use two different websites integrated with two different versions of Dynamic Web TWAIN on the same computer?</a></li>
287287

288-
<li><a href="{{site.faq}}how-come-would-you-need-local.dynamsoft.com.html">In which cases would I use local.dynamsoft.com instead of 127.0.0.1?</a></li>
288+
<!-- <li><a href="{{site.faq}}how-come-would-you-need-local.dynamsoft.com.html">In which cases would I use local.dynamsoft.com instead of 127.0.0.1?</a></li> -->
289289

290290
<li><a href="{{site.faq}}upgrade-to-latest-version.html">How do I upgrade my project to use the latest version of the Dynamic Web TWAIN SDK?</a></li>
291291

info/api/Addon_BarcodeReader.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -158,12 +158,12 @@ interface Result {
158158

159159
## getRuntimeSettings
160160

161-
Get the current runtime settings.
161+
Return the current runtime settings or the settings of the specified built-in template. The template can only be "speed", "balance", or "coverage".
162162

163163
**Syntax**
164164

165165
```typescript
166-
getRuntimeSettings(): Promise < RuntimeSettings > ;
166+
getRuntimeSettings(template?: string): Promise < RuntimeSettings > ;
167167

168168
interface RuntimeSettings {
169169
barcodeFormatIds: number;

info/api/WebTwain_Viewer.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Dynamsoft.DWT.CreateDWTObjectEx(
7070
DWObject = obj;
7171
template = DWObject.Viewer.getElementById("dwtcontrolContainer_temp3");
7272
DWObject.Viewer.width=500;
73-
    DWObject.Viewer.height=600;
73+
DWObject.Viewer.height=600;
7474
DWObject.Viewer.show();
7575
},
7676
function (errorCode, errorString) {

web.config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@
4747
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
4848
<action type="Redirect" url="https://www.dynamsoft.com/remote-scan/docs/introduction/" appendQueryString="false" logRewrittenUrl="false" />
4949
</rule>
50+
51+
<rule name="Redirect https://www.dynamsoft.com/web-twain/docs/faq/how-come-would-some-customers-need-local.dynamsoft.com.html" enabled="true" patternSyntax="ECMAScript">
52+
<match url="faq/how-come-would-some-customers-need-local.dynamsoft.com.html" ignoreCase="true" negate="false" />
53+
<conditions logicalGrouping="MatchAll" trackAllCaptures="false" />
54+
<action type="Redirect" url="https://www.dynamsoft.com/web-twain/docs/faq/how-come-would-you-need-local.dynamsoft.com.html" appendQueryString="false" logRewrittenUrl="false" />
55+
</rule>
5056
</rules>
5157
</rewrite>
5258
</system.webServer>

0 commit comments

Comments
 (0)