Skip to content

Commit

Permalink
Drop FirstTimeMessageAspNetCertificateLinux
Browse files Browse the repository at this point in the history
As of dotnet/aspnetcore#56582, `--trust` is supported on (key distros of) Linux.
Unofficially, it will likely work on others as well.
  • Loading branch information
amcasey committed Aug 2, 2024
1 parent 971e7aa commit 5947b60
Show file tree
Hide file tree
Showing 14 changed files with 4 additions and 120 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,11 @@ public void Configure()

if (canShowFirstUseMessages)
{
var aspNetCertMessage = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) || RuntimeInformation.IsOSPlatform(OSPlatform.OSX) ?
// The instructions in this message only apply to Windows and MacOS.
LocalizableStrings.FirstTimeMessageAspNetCertificate :
// The instructions in this message only apply to Linux (various distros).
// OSPlatform.FreeBSD would also see this message, which is acceptable since we have no specific FreeBSD instructions.
LocalizableStrings.FirstTimeMessageAspNetCertificateLinux;
// This message is slightly misleading for (e.g.) FreeBSD, which doesn't officially
// support `dotnet dev-certs https --trust`, but the link in the message should help
// users find the right steps for their platform.
_reporter.WriteLine();
_reporter.WriteLine(aspNetCertMessage);
_reporter.WriteLine(LocalizableStrings.FirstTimeMessageAspNetCertificate);
}
}
}
Expand Down
5 changes: 0 additions & 5 deletions src/Cli/Microsoft.DotNet.Configurer/LocalizableStrings.resx
Original file line number Diff line number Diff line change
Expand Up @@ -147,9 +147,4 @@ Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate, run 'dotnet dev-certs https --trust'
Learn about HTTPS: https://aka.ms/dotnet-https</value>
</data>
<data name="FirstTimeMessageAspNetCertificateLinux" xml:space="preserve">
<value>----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate, view the instructions: https://aka.ms/dotnet-https-linux</value>
</data>
</root>

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 5947b60

Please sign in to comment.