4

ASP.NET Core developer certificate: ERR_SSL_VERSION_OR_CIPHER_MISMATCH on macOS

 1 year ago
source link: https://alexanderzeitler.com/articles/asp-net-core-developer-certificate-err-ssl-version-or-cipher-mismatch-on-macos/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

ASP.NET Core developer certificate: ERR_SSL_VERSION_OR_CIPHER_MISMATCH on macOS

Published on Wednesday, March 8, 2023

Photo by Kenny Eliason on Unsplash

kenny-eliason--Cmz06-0btw-unsplash.jpg

I've been facing an issue with the ASP.NET developer certificates for ASP.NET Core 7 apps using HTTPS on macOS:

ERR_SSL_VERSION_OR_CIPHER_MISMATCH

Whatever I tried (dotnet dev-certs https [ --clean / --trust ]), I couldn't get it to work.

I also removed the certs manually from macOS Keychain.

Then I found this issue on GitHub which suggested adding this PropertyGroup to the csproj file:

<PropertyGroup>
<UseAppHost>false</UseAppHost>
</PropertyGroup>

In fact it fixed the error.

Now I could use some help from you: Why does this setting fix it?


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK