Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions faq/failed-to-load-resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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 <font color=red>December 8th, 2023</font>. This means you must update the certificate again after this certificate expires.
- Method 3. <a href="{{site.about}}getsupport.html" target="_blank">Contact Dynamsoft</a> for a new MSI for client-side. -->

- 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:
<!-- - 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:
```javascript
Dynamsoft.OnSSLCertInfo = function (sslExpiredDate) {
if ((sslExpiredDate - new Date()) / 86400000 < 15) { // Automatically updates 15 days before expiration
Expand All @@ -60,7 +60,7 @@ By default, “127.0.0.1” is used for service connection. "127.0.0.1" uses a s
);
}
};
```
``` -->

<!--

Expand Down
4 changes: 2 additions & 2 deletions info/api/Dynamsoft_WebTwainEnv.md
Original file line number Diff line number Diff line change
Expand Up @@ -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);}
);
Expand Down Expand Up @@ -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.
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.