Skip to content

Commit b0ab6b7

Browse files
authored
Merge pull request #586 from dynamsoft-docs/preview
Preview
2 parents 4e6df51 + a79f940 commit b0ab6b7

File tree

7 files changed

+625
-461
lines changed

7 files changed

+625
-461
lines changed

faq/change-dynamsoft-service-certificate.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ To replace the default certificate, the steps are:
2222
- Replace the old keys in `C:\Windows\SysWOW64\Dynamsoft\DynamsoftServicex64_17\cert`
2323
- Restart the service
2424

25-
NOTE: 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 the client side certificate.
25+
<!-- NOTE: 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 the client side certificate. -->

faq/failed-to-load-resource.md

Lines changed: 45 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -19,36 +19,51 @@ 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"**.
23-
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>
25-
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-
28-
### Resolution
29-
30-
- For v17.1.1 or older versions, choose one of the following approaches:
31-
- 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.
35-
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:
37-
```javascript
38-
Dynamsoft.OnSSLCertInfo = function (sslExpiredDate) {
39-
if ((sslExpiredDate - new Date()) / 86400000 < 15) { // Automatically updates 15 days before expiration
40-
Dynamsoft.DWT.UpdateCert(
41-
"https://demo.dynamsoft.com/DWT/Resources/dist/cert.zip",
42-
function () {
43-
//Success callback
44-
},
45-
function (errorCode, errorString) {
46-
console.log(errorString);
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".
23+
24+
25+
In the case that you have used our expired certificate - local.dynamsoft.com, you will need to update to the latest VeriSign’ed certificate. The most recent expired "local.dynamsoft.com" certificate expired on <font color=red>January 9th, 2023</font> and the latest certificate will expire on <font color=red>December 8th, 2023</font>
26+
27+
> ___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._
28+
29+
<!-- 2. Your own domain certificate expired. -->
30+
31+
<!-- 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>. -->
32+
33+
### Resolution
34+
35+
- **No High Level Security Requirement**:
36+
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.
37+
38+
- **High Level Security Requirement (<font color=red>Please note: you need to replace the certificate annually due to expiration</font>)**
39+
40+
1. (**<u>Recommended</u>**) Revert back to the self-signed certificate for "127.0.0.1". Dynamsoft understands the importance of information security and are committed to remaining one of the most security-compliant companies in the industry. Starting from April 9,2021, Dynamsoft becomes ISO 27001 certified. Although a self-sign certificate is being used all connections are limited to the device itself (127.0.0.1) which ensures security in most cases.
41+
42+
2. If you have to use "local.dynamsoft.com", the following methods can be taken:
43+
- Method 1 (**<u>Recommended</u>**). Take advantage of the new feature -- **Remote Scan** which released in v18.0. With Remote Scan, you can limit the number of Dynamsoft Service Installations to a minimum. For more details, please refer to [What is Remote Scan](https://www.dynamsoft.com/remote-scan/docs/introduction/).
44+
45+
- 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`**. Then restart Dynamsoft Service.
46+
> 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.
47+
48+
- Method 3. <a href="{{site.about}}getsupport.html" target="_blank">Contact Dynamsoft</a> for a new MSI for client-side. Please specify the exact service version build number found from the version your client currently has installed.
49+
50+
- Method 4 (**<u>Convenience but not recommend</u>**). 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 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:
51+
```javascript
52+
Dynamsoft.OnSSLCertInfo = function (sslExpiredDate) {
53+
if ((sslExpiredDate - new Date()) / 86400000 < 15) { // Automatically updates 15 days before expiration
54+
Dynamsoft.DWT.UpdateCert(
55+
"https://demo.dynamsoft.com/DWT/Resources/dist/cert.zip", //You may use your own URL to where the new certificate is placed.
56+
function () {
57+
//Success callback
58+
},
59+
function (errorCode, errorString) {
60+
console.log(errorString);
61+
}
62+
);
4763
}
48-
);
49-
}
50-
};
51-
```
64+
};
65+
```
66+
***Please be aware that the download may not work properly in all environments due to your company's security policy.***
5267
5368
<!--
5469
@@ -62,7 +77,7 @@ Note: the new certificate from Dynamsoft will expire on December 8th, 2023. This
6277
then add the following code lines in DSConfiguration.ini
6378
6479
```javascript
65-
//if you perfer to use your own valid certificate, change the local.dynamsoftwebtwain.com to your own address. As well as cert_name and key_name.
80+
//if you prefer to use your own valid certificate, change the local.dynamsoftwebtwain.com to your own address. As well as cert_name and key_name.
6681
[local.dynamsoftwebtwain.com]
6782
cert_name=server.pem.ldsc
6883
key_name=server_key.pem.ldsc

faq/index.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,8 +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>
289-
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> -->
290289
<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>
291290

292291
<li><a href="{{site.faq}}upgrade-end-user-installations.html">How do I upgrade the end-user installation for all end users once I upgrade my project?</a></li>

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;

0 commit comments

Comments
 (0)