Skip to content

Commit 166147b

Browse files
authored
Merge pull request #570 from ztyyLV/Jackson-branch
Jackson branch
2 parents b0d147e + a4e1c3b commit 166147b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

faq/failed-to-load-resource.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,14 @@ In this case, if you are trying to access an application that integrates a versi
3333
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.
3434
- Method 3. <a href="{{site.about}}getsupport.html" target="_blank">Contact Dynamsoft</a> for a new MSI for client-side.
3535

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 and search the keyword "OnSSLCertInfo"**, add the following lines of code:
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:
3737
```javascript
3838
Dynamsoft.OnSSLCertInfo = function (sslExpiredDate) {
39-
if ((sslExpiredDate - new Date()) / 86400000 < 15) {
39+
if ((sslExpiredDate - new Date()) / 86400000 < 15) { // Automatically updates 15 days before expiration
4040
Dynamsoft.DWT.UpdateCert(
4141
"https://demo.dynamsoft.com/DWT/Resources/dist/cert.zip",
4242
function () {
43+
//Success callback
4344
},
4445
function (errorCode, errorString) {
4546
console.log(errorString);

0 commit comments

Comments
 (0)