dotnet / aspnetcore

ASP.NET Core is a cross-platform .NET framework for building modern cloud-based web applications on Windows, Mac, or Linux.
https://asp.net
MIT License
35.38k stars 10k forks source link

KestrelConfigurationLoaderTests.ConfigureEndpointDevelopmentCertificateGetsLoadedWhenPresent is flaky #48736

Open amcasey opened 1 year ago

amcasey commented 1 year ago

Failing Test(s)

Error Message

System.Security.Cryptography.CryptographicException : Key not valid for use in specified state.

Stacktrace

```text System.Security.Cryptography.CryptographicException : Key not valid for use in specified state. at System.Security.Cryptography.X509Certificates.StorePal.Export(X509ContentType contentType, SafePasswordHandle password) at System.Security.Cryptography.X509Certificates.CertificatePal.Export(X509ContentType contentType, SafePasswordHandle password) at System.Security.Cryptography.X509Certificates.X509Certificate.Export(X509ContentType contentType, String password) at Microsoft.AspNetCore.Server.Kestrel.Tests.KestrelConfigurationLoaderTests.ConfigureEndpointDevelopmentCertificateGetsLoadedWhenPresent() in /_/src/Servers/Kestrel/Kestrel/test/KestrelConfigurationLoaderTests.cs:line 248 at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor) at System.Reflection.MethodInvoker.Invoke(Object obj, IntPtr* args, BindingFlags invokeAttr) ```

Build

https://dev.azure.com/dnceng-public/public/_build/results?buildId=303767&view=results

amcasey commented 1 year ago

From wfurt: https://github.com/dotnet/aspnetcore-internal/issues/4310#issuecomment-1587883100