Skip to content

Blazor WebAssembly - certificate [Linux] [Ubuntu 20.20] #28237

@przemo098

Description

@przemo098

Describe the bug

image

It's impossible to run secured connection in Linux environment.
As far as I'm able to generate self signed CA certificate which works for ASP.NET core:
image

  1. Using $ dotnet dev-certs https --clean --import localhost.pfx -p 1234
    results with:
- The certificate at 'localhost.pfx' is not a valid ASP.NET Core HTTPS development certificate.

There is no place to put it in Blazor WebAssembly configuration (appsettings).

To Reproduce

Install Ubuntu 20.20
Install .NET 5
dotnet new blazorwasm
dotnet run

  • connection is not secured
  • generate certificate with openssl => no place to attach it in configuration

Further technical details

image

  • The IDE (VS Code) 1.51

P.S.
I tried to debug Blazor WASM in VS code it's also impossible.
I guess certificate issue might be the reason, yesterday I received some weird wrong certificate outputs which I'm unable to reproduce today after all day battle...
Also I was unable to debug Blazor WASM in Windows env, however after certificate installation debugger started to work...

Metadata

Metadata

Assignees

Labels

✔️ Resolution: AnsweredResolved because the question asked by the original author has been answered.Status: Resolvedarea-blazorIncludes: Blazor, Razor Componentsfeature-blazor-wasmThis issue is related to and / or impacts Blazor WebAssemblyquestion

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions