Linux SSL/port issues #388

Closed
opened 2026-01-29 16:38:18 +00:00 by claunia · 1 comment
Owner

Originally created by @esperpinion on GitHub (Oct 8, 2019).

Originally assigned to: @GregorBiswanger on GitHub.

  • Version: CLI 5.22.14.0 API 5.22.14

Core 3.0, Node.js v10.16.0

  • Target: Linux (Ubuntu v16)

Hi. I'm having issues running Blazor + ElectronNET app on Linux. The Windows build works fine.
We're also running additional API that is accessed through simple full uri requests.

Ubuntu console outputs:
stdout: warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect.
right after BridgeConnector connected.

In app, the problem is UI not being updated after any changes. API responds as being accessed fine.

The above happens only on Ubuntu, while on Windows everything is fine.

Currently our API is accessed through http protocol, Blazor UI is too. Only Electron Socket is https.
Trying to open electron socket in browser gives SSL error.

I've tried adding to StartupConfigure

app.UseCertificateForwarding();
app.UseForwardedHeaders();

or removing

app.UseHsts();
...
app.UseHttpsRedirection();

But the problem remains.
Is it possible to switch electron to http protocol or allow unsafe connection (possible in electronjs)?

Thank you.

Originally created by @esperpinion on GitHub (Oct 8, 2019). Originally assigned to: @GregorBiswanger on GitHub. <!-- Please search existing issues to avoid creating duplicates. --> <!-- Which version of Electron.NET CLI and API are you using? --> <!-- Please always try to use latest version before report. --> * **Version**: CLI 5.22.14.0 API 5.22.14 <!-- Which version of .NET Core and Node.js are you using (if applicable)? --> Core 3.0, Node.js v10.16.0 <!-- What target are you building for? --> * **Target**: Linux (Ubuntu v16) <!-- Enter your issue details below this comment. --> <!-- If you want, you can donate to increase issue priority (https://donorbox.org/electron-net) --> Hi. I'm having issues running Blazor + ElectronNET app on Linux. The Windows build works fine. We're also running additional API that is accessed through simple full uri requests. Ubuntu console outputs: `stdout: warn: Microsoft.AspNetCore.HttpsPolicy.HttpsRedirectionMiddleware[3] Failed to determine the https port for redirect.` right after BridgeConnector connected. In app, the problem is UI not being updated after any changes. API responds as being accessed fine. The above happens only on Ubuntu, while on Windows everything is fine. Currently our API is accessed through http protocol, Blazor UI is too. Only Electron Socket is https. Trying to open electron socket in browser gives SSL error. I've tried adding to StartupConfigure ``` app.UseCertificateForwarding(); app.UseForwardedHeaders(); ``` or removing ``` app.UseHsts(); ... app.UseHttpsRedirection(); ``` But the problem remains. Is it possible to switch electron to http protocol or allow unsafe connection (possible in electronjs)? Thank you.
claunia added the bug label 2026-01-29 16:38:18 +00:00
Author
Owner
@GregorBiswanger commented on GitHub (May 10, 2020): https://www.thesslstore.com/blog/how-to-make-ssl-certificates-play-nice-with-asp-net-core/
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/Electron.NET#388