[GH-ISSUE #3304] [Bug]: Desktop App: Server is not running at this URL. #15589

Closed
opened 2026-04-14 18:37:39 -05:00 by GiteaMirror · 18 comments
Owner

Originally created by @atrueresistance on GitHub (Aug 22, 2024).
Original GitHub issue: https://github.com/actualbudget/actual/issues/3304

Verified issue does not already exist?

  • I have searched and found no existing issue
  • I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file)

What happened?

I'm having an issue with the web server connecting to the desktop application.

image

The server is up and running using HTTPS and a self signed cert.
image

Having a self signed cert, you would normally be prompted in Chrome stating that the certificate is not valid. It's probably not the best way to go about it, but if you add it to the Trusted Root Certification Authorities for the current user Chrome inherently trusts it solving the warning. At least on the local machine for the current logged on user. I don't intend on opening the server to the outside, just LAN connection is good enough for me.
image

The desktop application is being ran on the same machine and user that the certificate was added to the Trusted Root Certification Authorities store.

Where are you hosting Actual?

Docker

What browsers are you seeing the problem on?

Desktop App (Electron)

Operating System

Windows 11

Originally created by @atrueresistance on GitHub (Aug 22, 2024). Original GitHub issue: https://github.com/actualbudget/actual/issues/3304 ### Verified issue does not already exist? - [X] I have searched and found no existing issue - [X] I will be providing steps how to reproduce the bug (in most cases this will also mean uploading a demo budget file) ### What happened? I'm having an issue with the web server connecting to the desktop application. ![image](https://github.com/user-attachments/assets/670eba51-55cb-4b9a-99c4-cf3f1cf9eac1) The server is up and running using HTTPS and a self signed cert. ![image](https://github.com/user-attachments/assets/1a229ecf-0ebf-40e7-b7aa-8b249da1823f) Having a self signed cert, you would normally be prompted in Chrome stating that the certificate is not valid. It's probably not the best way to go about it, but if you add it to the Trusted Root Certification Authorities for the current user Chrome inherently trusts it solving the warning. At least on the local machine for the current logged on user. I don't intend on opening the server to the outside, just LAN connection is good enough for me. ![image](https://github.com/user-attachments/assets/0f7cbd1f-8268-4bb6-b731-8edd7fa322bb) The desktop application is being ran on the same machine and user that the certificate was added to the Trusted Root Certification Authorities store. ### Where are you hosting Actual? Docker ### What browsers are you seeing the problem on? Desktop App (Electron) ### Operating System Windows 11
GiteaMirror added the electronbug labels 2026-04-14 18:37:39 -05:00
Author
Owner

@MikesGlitch commented on GitHub (Aug 22, 2024):

Confirmed - I'm seeing this also. This may be tricky - we do n't want to turn off TLS validation for security reasons. Having said that, disabling it does work:

process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

Anyone got any thoughts on the best approach here?

<!-- gh-comment-id:2305349384 --> @MikesGlitch commented on GitHub (Aug 22, 2024): Confirmed - I'm seeing this also. This may be tricky - we do n't want to turn off TLS validation for security reasons. Having said that, disabling it does work: ``` process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0'; ``` Anyone got any thoughts on the best approach here?
Author
Owner
<!-- gh-comment-id:2305352440 --> @psybers commented on GitHub (Aug 22, 2024): https://stackoverflow.com/questions/38986692/how-do-i-trust-a-self-signed-certificate-from-an-electron-app
Author
Owner

@atrueresistance commented on GitHub (Aug 22, 2024):

I'll start of with I know nothing of electron apps. I do agree that TLS validation off is not the default way to ship.

I'm not sure how much work it would be, but would it be possible to have a configuration item in the desktop app that whitelists a specific certificate serial number?

https://www.electronjs.org/docs/latest/api/session#sessetcertificateverifyprocproc

If the certificate is installed in the current user's certificate store can the desktop app use is directly from the store?

<!-- gh-comment-id:2305382202 --> @atrueresistance commented on GitHub (Aug 22, 2024): I'll start of with I know nothing of electron apps. I do agree that TLS validation off is not the default way to ship. I'm not sure how much work it would be, but would it be possible to have a configuration item in the desktop app that whitelists a specific certificate serial number? https://www.electronjs.org/docs/latest/api/session#sessetcertificateverifyprocproc If the certificate is installed in the current user's certificate store can the desktop app use is directly from the store?
Author
Owner

@MikesGlitch commented on GitHub (Aug 22, 2024):

We have a bit of an odd setup, we run our loot-core server process (that calls the API and gets the error) in a forked process.

I think that means the session's setCertificateVerifyProc won't pick it up.

Maybe we can configure node-fetch for Electron to figure out the root store 🤔

<!-- gh-comment-id:2305547706 --> @MikesGlitch commented on GitHub (Aug 22, 2024): We have a bit of an odd setup, we run our loot-core server process (that calls the API and gets the error) in a forked process. I think that means the session's setCertificateVerifyProc won't pick it up. Maybe we can configure node-fetch for Electron to figure out the root store 🤔
Author
Owner

@MikesGlitch commented on GitHub (Aug 24, 2024):

I have a draft pr up - as expected the electron setCertificateVerifyProc wont work. The only way to make it work is for the user to specify the cert that they want to trust.

@atrueresistance How did you generate your cert? I used makecert to test but want to make sure it also works on your config.

<!-- gh-comment-id:2308390853 --> @MikesGlitch commented on GitHub (Aug 24, 2024): I have a draft pr up - as expected the electron setCertificateVerifyProc wont work. The only way to make it work is for the user to specify the cert that they want to trust. @atrueresistance How did you generate your cert? I used makecert to test but want to make sure it also works on your config.
Author
Owner

@atrueresistance commented on GitHub (Aug 24, 2024):

@MikesGlitch I used the same command as in the documentation except with a subject alternative name to match the hostname.

openssl req -x509 -nodes -days 365 -addext "subjectAltName = DNS:orangepi3-lts" -newkey rsa:2048 -keyout selfhost.key -out selfhost.crt

<!-- gh-comment-id:2308397187 --> @atrueresistance commented on GitHub (Aug 24, 2024): @MikesGlitch I used the same command as in the documentation except with a subject alternative name to match the hostname. `openssl req -x509 -nodes -days 365 -addext "subjectAltName = DNS:orangepi3-lts" -newkey rsa:2048 -keyout selfhost.key -out selfhost.crt`
Author
Owner

@MikesGlitch commented on GitHub (Aug 24, 2024):

@MikesGlitch I used the same command as in the documentation except with a subject alternative name to match the hostname.

Thanks, I have a build here: https://github.com/actualbudget/actual/actions/runs/10541997136/job/29208287390?pr=3308

Can you confirm if it fixes this issue? If you try it, don't forget to backup your budget first.

<!-- gh-comment-id:2308560402 --> @MikesGlitch commented on GitHub (Aug 24, 2024): > @MikesGlitch I used the same command as in the documentation except with a subject alternative name to match the hostname. Thanks, I have a build here: https://github.com/actualbudget/actual/actions/runs/10541997136/job/29208287390?pr=3308 Can you confirm if it fixes this issue? If you try it, don't forget to backup your budget first.
Author
Owner

@atrueresistance commented on GitHub (Aug 26, 2024):

This app package’s publisher certificate could not be verified. Contact your system administrator or the app developer to obtain a new app package with verified certificates. The root certificate and all immediate certificates of the signature in the app package must be verified (0x800B010A)

<!-- gh-comment-id:2310890392 --> @atrueresistance commented on GitHub (Aug 26, 2024): `This app package’s publisher certificate could not be verified. Contact your system administrator or the app developer to obtain a new app package with verified certificates. The root certificate and all immediate certificates of the signature in the app package must be verified (0x800B010A)`
Author
Owner

@MikesGlitch commented on GitHub (Aug 26, 2024):

That's what we'd expect for the appx installer - it's for the windows store.

Try the "actual-electron-windows-latest" artifact, that should install as per usual.

<!-- gh-comment-id:2310943098 --> @MikesGlitch commented on GitHub (Aug 26, 2024): That's what we'd expect for the appx installer - it's for the windows store. Try the "actual-electron-windows-latest" artifact, that should install as per usual.
Author
Owner

@atrueresistance commented on GitHub (Aug 26, 2024):

Is there a link? Sorry I'm not sure where I should be looking.

<!-- gh-comment-id:2311099934 --> @atrueresistance commented on GitHub (Aug 26, 2024): Is there a link? Sorry I'm not sure where I should be looking.
Author
Owner

@MikesGlitch commented on GitHub (Aug 26, 2024):

Is there a link? Sorry I'm not sure where I should be looking.

Ah, this is the direct link to the download: https://github.com/actualbudget/actual/actions/runs/10541997136/artifacts/1850858005

Here's the PR, if interested: https://github.com/actualbudget/actual/pull/3308

<!-- gh-comment-id:2311123549 --> @MikesGlitch commented on GitHub (Aug 26, 2024): > Is there a link? Sorry I'm not sure where I should be looking. Ah, this is the direct link to the download: https://github.com/actualbudget/actual/actions/runs/10541997136/artifacts/1850858005 Here's the PR, if interested: https://github.com/actualbudget/actual/pull/3308
Author
Owner

@atrueresistance commented on GitHub (Aug 27, 2024):

@MikesGlitch I was able to download the latest and get it running with the self signed cert.

Thank you so much!
image

<!-- gh-comment-id:2312594501 --> @atrueresistance commented on GitHub (Aug 27, 2024): @MikesGlitch I was able to download the latest and get it running with the self signed cert. Thank you so much! ![image](https://github.com/user-attachments/assets/12c1dd99-e660-4fb2-b468-79cd54c8aab0)
Author
Owner

@crzdg commented on GitHub (Aug 27, 2024):

Nice. I will soon test this as well. Im using Caddy as proxy, so a short-lived certificate. Can I trust the Intermediate / Root, so the short-lived signed certs work?

<!-- gh-comment-id:2313486532 --> @crzdg commented on GitHub (Aug 27, 2024): Nice. I will soon test this as well. Im using Caddy as proxy, so a short-lived certificate. Can I trust the Intermediate / Root, so the short-lived signed certs work?
Author
Owner

@MikesGlitch commented on GitHub (Aug 28, 2024):

Nice. I will soon test this as well. Im using Caddy as proxy, so a short-lived certificate. Can I trust the Intermediate / Root, so the short-lived signed certs work?

I'm not too familiar with Caddy so couldn't say. You can trust a certificate that is locally on the PC that is .crt or .pem format.

<!-- gh-comment-id:2316054591 --> @MikesGlitch commented on GitHub (Aug 28, 2024): > Nice. I will soon test this as well. Im using Caddy as proxy, so a short-lived certificate. Can I trust the Intermediate / Root, so the short-lived signed certs work? I'm not too familiar with Caddy so couldn't say. You can trust a certificate that is locally on the PC that is .crt or .pem format.
Author
Owner

@MikesGlitch commented on GitHub (Aug 28, 2024):

Closed by https://github.com/actualbudget/actual/pull/3308

<!-- gh-comment-id:2316225930 --> @MikesGlitch commented on GitHub (Aug 28, 2024): Closed by https://github.com/actualbudget/actual/pull/3308
Author
Owner

@wgregbrown commented on GitHub (Mar 16, 2025):

Is there anywhere to still get the desktop client that will work with self signed certs. @MikesGlitch put a link

https://github.com/actualbudget/actual/actions/runs/10541997136/job/29208287390?pr=3308

But its empty now.

<!-- gh-comment-id:2727708310 --> @wgregbrown commented on GitHub (Mar 16, 2025): Is there anywhere to still get the desktop client that will work with self signed certs. @MikesGlitch put a link https://github.com/actualbudget/actual/actions/runs/10541997136/job/29208287390?pr=3308 But its empty now.
Author
Owner

@MikesGlitch commented on GitHub (Mar 17, 2025):

The latest release has it. You can get it from the GitHub releases page

On Sun, 16 Mar 2025, 23:19 wgregbrown, @.***> wrote:

Is there anywhere to still get the desktop client that will work with self
signed certs. @MikesGlitch https://github.com/MikesGlitch put a link

https://github.com/actualbudget/actual/actions/runs/10541997136/job/29208287390?pr=3308

But its empty now.


Reply to this email directly, view it on GitHub
https://github.com/actualbudget/actual/issues/3304#issuecomment-2727708310,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABIKQKBRBBCU5WAB2NAJZXL2UYBINAVCNFSM6AAAAABM6SL4UGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMRXG4YDQMZRGA
.
You are receiving this because you were mentioned.Message ID:
@.***>
[image: wgregbrown]wgregbrown left a comment (actualbudget/actual#3304)
https://github.com/actualbudget/actual/issues/3304#issuecomment-2727708310

Is there anywhere to still get the desktop client that will work with self
signed certs. @MikesGlitch https://github.com/MikesGlitch put a link

https://github.com/actualbudget/actual/actions/runs/10541997136/job/29208287390?pr=3308

But its empty now.


Reply to this email directly, view it on GitHub
https://github.com/actualbudget/actual/issues/3304#issuecomment-2727708310,
or unsubscribe
https://github.com/notifications/unsubscribe-auth/ABIKQKBRBBCU5WAB2NAJZXL2UYBINAVCNFSM6AAAAABM6SL4UGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMRXG4YDQMZRGA
.
You are receiving this because you were mentioned.Message ID:
@.***>

<!-- gh-comment-id:2727754085 --> @MikesGlitch commented on GitHub (Mar 17, 2025): The latest release has it. You can get it from the GitHub releases page On Sun, 16 Mar 2025, 23:19 wgregbrown, ***@***.***> wrote: > Is there anywhere to still get the desktop client that will work with self > signed certs. @MikesGlitch <https://github.com/MikesGlitch> put a link > > > https://github.com/actualbudget/actual/actions/runs/10541997136/job/29208287390?pr=3308 > > But its empty now. > > — > Reply to this email directly, view it on GitHub > <https://github.com/actualbudget/actual/issues/3304#issuecomment-2727708310>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABIKQKBRBBCU5WAB2NAJZXL2UYBINAVCNFSM6AAAAABM6SL4UGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMRXG4YDQMZRGA> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> > [image: wgregbrown]*wgregbrown* left a comment (actualbudget/actual#3304) > <https://github.com/actualbudget/actual/issues/3304#issuecomment-2727708310> > > Is there anywhere to still get the desktop client that will work with self > signed certs. @MikesGlitch <https://github.com/MikesGlitch> put a link > > > https://github.com/actualbudget/actual/actions/runs/10541997136/job/29208287390?pr=3308 > > But its empty now. > > — > Reply to this email directly, view it on GitHub > <https://github.com/actualbudget/actual/issues/3304#issuecomment-2727708310>, > or unsubscribe > <https://github.com/notifications/unsubscribe-auth/ABIKQKBRBBCU5WAB2NAJZXL2UYBINAVCNFSM6AAAAABM6SL4UGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDOMRXG4YDQMZRGA> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> >
Author
Owner

@neobladerunner commented on GitHub (Apr 4, 2026):

I'm experiencing this issue with latest version 26.3.0 via Flathub. I've generated a self-signed cert via mkcert and can load the app fine via the browser from any device on my network. The desktop app states:

Server is not running at this URL. Make sure you have HTTPS set up properly.
If the server is using a self-signed certificate select it here.

I followed the instructions here to import the root certificate to the desktop app from the device Actual is running on, but the UI doesn't seem to do anything when I import it. Clicking on OK doesn't clear the red error message, and I can't tell if it's rejecting the cert file or not seeing it at all. I suppose I should just use the web client but wanted to try the desktop app if I could.

<!-- gh-comment-id:4186523661 --> @neobladerunner commented on GitHub (Apr 4, 2026): I'm experiencing this issue with latest version 26.3.0 via Flathub. I've generated a self-signed cert via mkcert and can load the app fine via the browser from any device on my network. The desktop app states: > Server is not running at this URL. Make sure you have HTTPS set up properly. > If the server is using a self-signed certificate select it here. I followed the instructions [here](https://actualbudget.org/docs/config/https/) to import the root certificate to the desktop app from the device Actual is running on, but the UI doesn't seem to do anything when I import it. Clicking on OK doesn't clear the red error message, and I can't tell if it's rejecting the cert file or not seeing it at all. I suppose I should just use the web client but wanted to try the desktop app if I could.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/actual#15589