Giter VIP home page Giter VIP logo

Comments (11)

sarvasana avatar sarvasana commented on September 22, 2024 1

Stuck on this as well. Maybe is there a workaround for dotnet 3.1?

Install net5, use net31.

from create-dotnet-devcert.

sarvasana avatar sarvasana commented on September 22, 2024 1

In the browser you can simply trust the certificate by using the rendered warning page.

The other issues are probably caused by incorrect launchsettings.
I would check those.

from create-dotnet-devcert.

abrahamlaria avatar abrahamlaria commented on September 22, 2024 1

Thanks, I got it to work :)

from create-dotnet-devcert.

BorisWilhelms avatar BorisWilhelms commented on September 22, 2024 1

I guess we can close this. .NET 3.1 and .NET 5 are EOL and out of support.

from create-dotnet-devcert.

sarvasana avatar sarvasana commented on September 22, 2024

Correct, I ran into that as well. If someone does not know that, they are puzzled.
Better to mention it.

from create-dotnet-devcert.

hugofdsantos avatar hugofdsantos commented on September 22, 2024

Stuck on this as well. Maybe is there a workaround for dotnet 3.1?

from create-dotnet-devcert.

hugofdsantos avatar hugofdsantos commented on September 22, 2024

Well, I felt like an idiot now 😆. Thank you.

from create-dotnet-devcert.

sarvasana avatar sarvasana commented on September 22, 2024

Wow, I just installed a new machine (manjaro) and am having issues with running dotnet dev-certs https.

Got net5 installed.
Could not find the dotnet tool.
Ran dotnet tool install --global dotnet-dev-certs
Now dotnet dev-certs https does not support the --import argument.

What is going on?

EDIT:
Ok, so apparently dotnet-dev-certs comes with net5, so there is no need to install it from nuget.
I forgot about that.
Installing from nuget will give you a really old version from 2018. Do not do that!

Either I am missing some environment variable or path on my PATH variable or the net5 packages in the arch repositories are broken.
When I install those, dotnet-dev-certs cannot be found.

When I install dotnet using ./dotnet-install.sh -c Current the dotnet-dev-certs global tool can be found.
https://docs.microsoft.com/en-us/dotnet/core/tools/dotnet-install-script

from create-dotnet-devcert.

sarvasana avatar sarvasana commented on September 22, 2024

I ran into more problems when using the dotnet-install.sh script.
Problems I had were:

  • MSBuild.Sdk.SqlProj could not find dotnet
  • Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator.targets(37, 5): Metadata generation failed. Exit code: '134' Error: 'No usable version of the libssl was found'

This was most likely caused because dotnet got installed at ~/.dotnet.

The solution that does work is:
curl -sSL https://dot.net/v1/dotnet-install.sh | sudo bash /dev/stdin -c LTS --install-dir /usr/share/dotnet
curl -sSL https://dot.net/v1/dotnet-install.sh | sudo bash /dev/stdin -c Current --install-dir /usr/share/dotnet
sudo ln -sf /usr/share/dotnet/dotnet /usr/bin/dotnet

Related regression: 5.0.4 is missing DotnetTools
dotnet/source-build#2109

from create-dotnet-devcert.

abrahamlaria avatar abrahamlaria commented on September 22, 2024

Hello,
I'm using Ubuntu and I installed the certificate following the pre requisites. Still when trying to run an asp.net core 5.0 application the browser says it is not secure. In Rider it doesn't even open the browser and it stop the program. In VS Code it starts listening on https://localhost:5001 but it doesn't open any browser as well. Entering the URL directly on the browser shows the not secure warning.
Am I missing something?
Thanks!

from create-dotnet-devcert.

BorisWilhelms avatar BorisWilhelms commented on September 22, 2024

Good point. Yes, dotnet dev-certs https --import needs .NET 5. I will update the README and add this to the prerequisites.

While it is technically possible to add the cert to .NET Core 3.1 SDK, I am not a bash specialist and don't know how to check and add this.

If someone is willing to this contact me and we can discuss this.

from create-dotnet-devcert.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.