Starts in:
0 DAY
3 HRS
55 MIN
25 SEC
Starts in:
0 D
3 H
55 M
25 S
Open Closed

Blazor Server Layered Application can´t find a valid SSL Certificate - https error when opening through the browser #8293


User avatar
0
chrisalves created

Check the docs before asking a question: https://abp.io/docs/latest Check the samples to see the basic tasks: https://abp.io/docs/latest/samples The exact solution to your question may have been answered before, and please first use the search on the homepage. Provide us with the following info: 🧐 Hint: If you are using the ABP Studio, you can see all the information about your solution from the configuration window, which opens when you right-click on the solution and click on the Solution Configuration button.

  • ABP Framework version: v8.3.3
  • UI Type: Blazor Server
  • Database System: EF Core (SQL Server)
  • Tiered (for MVC) or Auth Server Separated (for Angular): no
  • Exception message and full stack trace:The SSL certificate is not located so the navigator browser can´t acess the application due to the missing certificate. The available documentation doesn´t cover this detail on how to setup the local certification to run Blazor Server project neigther in ABP Studio, nor in the Command Prompt like dotnet run (inside the project folder of Blazor Server).
  • Steps to reproduce the issue:
  • After creation of Layered (not tiered) Blazor Server application using ABP Studio, after followed the steps to install libs and migration, the application can´t be opened by the any browser without setting up the SSL Certificate.

The below picture shows the browser requesting the valid certificate. There is no instructions about the files to be updated in the code to pass the local certificate path.


3 Answer(s)
  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    you can try exec the dotnet dev-certs https --trust command

  • User Avatar
    0
    chrisalves created

    Hi,

    The digital certificate defined by the ABP Studio when creating the application already exists in the Blazor folder.

    I added "--trust" option at the end of ABP Studio command example and now it is working. The ABP Studio is missing the --Trust option at the end of the example command.

  • User Avatar
    0
    liangshiwei created
    Support Team Fullstack Developer

    Hi,

    okay, good to see that the problem was solved.

Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06