dotnet dev-certs コマンド - .NET CLI

dotnet dev-certs コマンドを実行すると自己署名証明書が生成され、開発中に HTTPS を使用できるようになります。

docs.microsoft.com