Comments (11)
Stuck on this as well. Maybe is there a workaround for dotnet 3.1?
Install net5, use net31.
from create-dotnet-devcert.
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.
Thanks, I got it to work :)
from create-dotnet-devcert.
I guess we can close this. .NET 3.1 and .NET 5 are EOL and out of support.
from create-dotnet-devcert.
Correct, I ran into that as well. If someone does not know that, they are puzzled.
Better to mention it.
from create-dotnet-devcert.
Stuck on this as well. Maybe is there a workaround for dotnet 3.1?
from create-dotnet-devcert.
Well, I felt like an idiot now 😆. Thank you.
from create-dotnet-devcert.
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.
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.
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.
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)
- Great job.
- I am working with Microsoft Tye on Ubuntu it seem to help development on microservices. I am also working with the abp framework they have an example project called eShopOnAbp
- Cert not trusted, SSL Handshake Failing HOT 6
- ipv6 devcert
- Work well before but error when upgrading to 22.04 from 20.04
- certutil: could not find certificate named "dotnet-devcert": SEC_ERROR_INVALID_ARGS: security library: invalid arguments. HOT 1
- Great Job!
- OpenSuse TW
- Can't get ASPNET Core Developer Certificate to work Ubuntu 22
- The ASP.NET Core developer certificate is not trusted
- IdentityServer4 service-to-service communication Error UntrustedRoot HOT 9
- Received an unexpected EOF or 0 bytes from the transport stream HOT 3
- Help required for running in Docker (Ubuntu) HOT 4
- The server mode SSL must use a certificate with the associated private key HOT 1
- Running command from outside scripts folder fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from create-dotnet-devcert.