Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Can not determine location to install CA certificate on Linux Mint 21.3" #13

Closed
GijsvandenHoven opened this issue May 3, 2024 · 5 comments · Fixed by #14
Closed

"Can not determine location to install CA certificate on Linux Mint 21.3" #13

GijsvandenHoven opened this issue May 3, 2024 · 5 comments · Fixed by #14

Comments

@GijsvandenHoven
Copy link

GijsvandenHoven commented May 3, 2024

I was wondering if this might be an error, as Mint is derived from Ubuntu which is derived from Debian.

I poked around the code a bit, and I think I might even know why: in OSFlavor.cs, isDebianLike is set with EnsureIds().

This reads the /etc/os-release file and scans the ID and ID_LIKE fields.

This file looks like this on my computer:

NAME="Linux Mint"
VERSION="21.3 (Virginia)"
ID=linuxmint
ID_LIKE="ubuntu debian"
PRETTY_NAME="Linux Mint 21.3"
VERSION_ID="21.3"
HOME_URL="https://www.linuxmint.com/"
SUPPORT_URL="https://forums.linuxmint.com/"
BUG_REPORT_URL="http://linuxmint-troubleshooting-guide.readthedocs.io/en/latest/"
PRIVACY_POLICY_URL="https://www.linuxmint.com/"
VERSION_CODENAME=virginia
UBUNTU_CODENAME=jammy

So I suspect this is failing because unfortunately, "ubuntu debian" does not match "debian" 😄

@tmds
Copy link
Owner

tmds commented May 6, 2024

Thanks for the bug report, and finding the root cause!

Can you give this build a try and verify it works?

dotnet tool update -g linux-dev-certs --prerelease --add-source https://www.myget.org/F/tmds/api/v3/index.json

@tmds tmds reopened this May 6, 2024
@GijsvandenHoven
Copy link
Author

Thank you for the swift fix! It looks like it works:

image

@GijsvandenHoven
Copy link
Author

I have played around with it a bit, and everything seems to be working.

At first I had some mysterious CORS problems sending requests to the ASP.NET with a frontend over localhost, but rebooting fixed this. You mentioned doing this in a Github issue where I originally found this tool, so I owe you my thanks twice now 👍

The only difference I can find in logs booting up the application between LM and a Win10 VM is that I am still getting this warning:

Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer[8]
      The ASP.NET Core developer certificate is not trusted. For information about trusting the ASP.NET Core developer certificate, see https://aka.ms/aspnet/https-trust-dev-cert.

But despite aspnetcore telling me this, it might not actually be the case.
I can find no evidence of the certificate not being trusted when using the ASP.NET backend I work on.

If you're familiar with this log persisting despite the tool creating a certificate, then I assume it can be safely ignored.

@tmds
Copy link
Owner

tmds commented May 6, 2024

I have played around with it a bit, and everything seems to be working.

Great! I will include this in a release in the near future.

If you're familiar with this log persisting despite the tool creating a certificate, then I assume it can be safely ignored.

Yes, you can ignore it. There is an open PR to get rid of that message: dotnet/aspnetcore#55335.

@tmds tmds closed this as completed May 6, 2024
@tmds
Copy link
Owner

tmds commented May 17, 2024

The fix is part of the 0.1.1 version which was just uploaded to nuget.org.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants