Skip to content

Commit 6d1f8ad

Browse files
committed
Update failed-to-load-resource.md
1 parent 0b84354 commit 6d1f8ad

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

faq/failed-to-load-resource.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,22 +45,22 @@ By default, “127.0.0.1” is used for service connection. "127.0.0.1" uses a s
4545
> 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.
4646
- Method 3. <a href="{{site.about}}getsupport.html" target="_blank">Contact Dynamsoft</a> for a new MSI for client-side. -->
4747
48-
<!-- - 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:
4949
```javascript
5050
Dynamsoft.OnSSLCertInfo = function (sslExpiredDate) {
5151
if ((sslExpiredDate - new Date()) / 86400000 < 15) { // Automatically updates 15 days before expiration
5252
Dynamsoft.DWT.UpdateCert(
53-
"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.
5454
function () {
5555
//Success callback
5656
},
5757
function (errorCode, errorString) {
58-
console.log(errorString);
58+
console.log(errorString);
5959
}
6060
);
6161
}
6262
};
63-
``` -->
63+
```
6464

6565
<!--
6666

0 commit comments

Comments
 (0)