Open Closed

[resolved with resolution] How to setup self-signed CA certificate for development env #7464


User avatar
0
manchi created

Note: I have resolved the issue, no action is required further but I am happy to share my lesson learned to avoid others going through the pain!

if you have encountered the SSL connection error while following the ABP commercial installation note. it is probably due to missing CA certificate in your environment. I have resolved this issue with the following instructions, and I would like to share it with you:

Error Message

System.Net.Http.HttpRequestException: The SSL connection could not be established, see inner exception. ---> System.Security.Authentication.AuthenticationException: The remote certificate is invalid because of errors in the certificate chain: UntrustedRoot

Resolution

Environment environment is very critical, this resolution is probably only work on Ubuntu. I would recommend you to use Github Codespace which has free tier with .NET template available.

$ uname -a Linux codespaces-fee234 6.5.0-1022-azure #23~22.04.1-Ubuntu SMP Thu May 9 17:59:24 UTC 2024 x86_64 GNU/Linux

execute the following command line in terminal

$dotnet tool install -g Volo.Abp.Cli $abp login <username> $abp suite install $sudo apt update $sudo apt install nodejs npm $npm install --global yarn $abp new Acme.BookStore -t app-pro -u blazor -dbms SQLite $sudo -E dotnet dev-certs https -ep /usr/local/share/ca-certificates/aspnet/https.crt --format PEM $sudo update-ca-certificates $cd src/Acme.BookStore.DbMigrator $dotnet run $cd src/Acme.BookStore.HttpApi.Host $dotnet run (in background) $cd src/Acme.BookStore.Blazor $dotnet run (in background)


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team Fullstack Developer

    hi

    Thanks.

Made with ❤️ on ABP v9.0.0-preview Updated on September 19, 2024, 10:13