Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"FetchError: certificate has expired" with valid certificate (repeat of #3348) #5525

Closed
hack-wizard opened this issue Oct 3, 2021 · 4 comments
Labels
bug It's a bug

Comments

@hack-wizard
Copy link

Looks like this is back, confirmed with a friend trying to access my NextCloud share over WebDAV on both Linux and Windows. Also confirmed on my own windows install.

Confirmed that the cert for my server is very much valid, but I get an error saying it is not when I have ignore TLS errors unchecked, happens with every sync.

Joplin version: 2.4.9 and before (updating made no difference)
Platform: Window, Linux
OS specifics: Occurs when "Ignore TLS Errors' is unchecked

Steps to reproduce

  1. Sync to my NextCloud over WebDAV (https://hack-wizard.twilightparadox.com in this case) with
  2. If Ignore TLS certificate Errors is unchecked, it gives error "FetchError: request to https://hack-wizard.twilightparadox.com/remote.php/dav/files/ncp/rpnotes/info.json failed, reason: certificate has expired"
  3. If that is disabled it works without issue

Expectations:
I dunno... maybe properly evaluate SSL certs???

Console log:
C:\Users\hack-\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\Logger.js:188 19:44:07: Synchronizer: FetchError {name: "FetchError", message: "request to https://hack-wizard.twilightparadox.com…info.json failed, reason: certificate has expired", type: "system", errno: "CERT_HAS_EXPIRED", code: "CERT_HAS_EXPIRED", …}

log.txt:
2021-10-02 19:49:29: Synchronizer: "Sync: finished: Synchronisation finished [1633229347898]"
2021-10-02 19:49:29: Synchronizer: "Operations completed: "
2021-10-02 19:49:29: Synchronizer: "Total folders: 11"
2021-10-02 19:49:29: Synchronizer: "Total notes: 74"
2021-10-02 19:49:29: Synchronizer: "Total resources: 9"
2021-10-02 19:49:29: Synchronizer: "There was some errors:"
2021-10-02 19:49:29: Synchronizer: "FetchError: request to https://hack-wizard.twilightparadox.com/remote.php/dav/files/ncp/rpnotes/info.json failed, reason: certificate has expired
Code: CERT_HAS_EXPIRED
FetchError: request to https://hack-wizard.twilightparadox.com/remote.php/dav/files/ncp/rpnotes/info.json failed, reason: certificate has expired
at ClientRequest. (C:\Users\hack-\AppData\Local\Programs\Joplin\resources\app.asar\node_modules@joplin\lib\node_modules\node-fetch\index.js:133:11)
at ClientRequest.emit (events.js:310:20)
at ClientRequest.EventEmitter.emit (domain.js:482:12)
at TLSSocket.socketErrorListener (_http_client.js:426:9)
at TLSSocket.emit (events.js:310:20)
at TLSSocket.EventEmitter.emit (domain.js:482:12)
at emitErrorNT (internal/streams/destroy.js:92:8)
at emitErrorAndCloseNT (internal/streams/destroy.js:60:3)
at processTicksAndRejections (internal/process/task_queues.js:84:21)"

@hack-wizard hack-wizard added the bug It's a bug label Oct 3, 2021
@CalebJohn
Copy link
Collaborator

Can you test this with the current pre-release (v2.5.1)? Please let me know if upgrading fixes your problem.

You can see more information related to this issue below.
https://discourse.joplinapp.org/t/fix-for-certificate-has-expired-error-with-joplin-cloud-and-self-hosted-sync-targets/20638
https://discourse.joplinapp.org/t/pre-release-v2-5-is-now-available-updated-2-oct/20702

@etemam
Copy link

etemam commented Oct 3, 2021

Hi,
same problem with Joplin 2.4.9 (mac os x version). I confirm that pre-release 2.5.1 fix the bug.

Thanks a lot.

@olafthiele
Copy link

Fixes it for me (win10), thanks for the pre-release :-)

@tessus
Copy link
Collaborator

tessus commented Oct 3, 2021

Duplicate of #5513

@tessus tessus marked this as a duplicate of #5513 Oct 3, 2021
@tessus tessus closed this as completed Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug
Projects
None yet
Development

No branches or pull requests

5 participants