Skip to content
Merged
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
5 changes: 3 additions & 2 deletions faq/failed-to-load-resource.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,14 @@ In this case, if you are trying to access an application that integrates a versi
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.
- 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, 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:
- 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:
```javascript
Dynamsoft.OnSSLCertInfo = function (sslExpiredDate) {
if ((sslExpiredDate - new Date()) / 86400000 < 15) {
if ((sslExpiredDate - new Date()) / 86400000 < 15) { // Automatically updates 15 days before expiration
Dynamsoft.DWT.UpdateCert(
"https://demo.dynamsoft.com/DWT/Resources/dist/cert.zip",
function () {
//Success callback
},
function (errorCode, errorString) {
console.log(errorString);
Expand Down