Skip to content

System.Security.Cryptography.CryptographicException : m_safeCertContext is an invalid handle. #124279

@EgorBo

Description

@EgorBo

Failing in JIT prs

System.Security.Cryptography.CryptographicException : m_safeCertContext is an invalid handle
   at System.Security.Cryptography.X509Certificates.X509Certificate.get_Subject() in /_/src/libraries/System.Security.Cryptography/src/System/Security/Cryptography/X509Certificates/X509Certificate.cs:line 280
   at System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers() in /_/src/libraries/System.Security.Cryptography/tests/X509Certificates/X509FilesystemTests.Unix.cs:line 94
--- End of stack trace from previous location ---

Build Information

Build: https://dev.azure.com/dnceng-public/cbb18261-c48f-4abb-8651-8cdcb5474649/_build/results?buildId=1289278
Build error leg or test failing: System.Runtime.Tests.WorkItemExecution
Pull request: https://github.com/dotnet/runtime.git/pull/124242

Error Message

Fill the error message using step by step known issues guidance.

{
  "ErrorMessage": "System.Security.Cryptography.CryptographicException : m_safeCertContext is an invalid handle.",
  "ErrorPattern": "",
  "BuildRetry": false,
  "ExcludeConsoleLog": false
}

Known issue validation

Build: 🔎 https://dev.azure.com/dnceng-public/public/_build/results?buildId=1289278
Error message validated: [System.Security.Cryptography.CryptographicException : m_safeCertContext is an invalid handle.]
Result validation: ✅ Known issue matched with the provided build.
Validation performed at: 2/11/2026 4:19:23 PM UTC

Report

Build Definition Test Pull Request
2902482 dotnet-runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers
1289408 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124168
1290798 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124309
1290761 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124291
1290749 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124296
1290766 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124274
1290705 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124227
1290695 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124205
1290645 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124306
1290586 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124295
1290580 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124301
1290577 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123727
1290565 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123819
1290559 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123824
1290549 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124202
1290476 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124289
1289706 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124284
1290473 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124257
1290461 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124300
1290395 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124297
1290418 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #122274
1290363 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124298
1290347 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124268
1290248 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123962
1290294 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124294
1290266 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124258
1290207 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124232
1290204 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123752
1290198 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123783
1290307 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers
1290160 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123735
1290192 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers
1290170 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124286
1290126 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123251
1289673 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124282
1290062 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124290
1290048 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123860
1290018 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124176
1290003 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124271
1289928 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123377
1289857 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124239
1289850 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124200
1289775 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123901
1289765 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123033
1289751 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123411
1289735 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124280
1289686 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #122898
1289586 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123076
1289574 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124256
1289562 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124273
1289552 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124270
1289487 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123138
1289494 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124264
1289469 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124003
1289451 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124173
1289505 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124267
1289447 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124269
1289392 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123894
1289363 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123727
1289354 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #123932
2901253 dotnet-runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers
2901226 dotnet-runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers
1289277 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124248
1289278 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #124242
1289200 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #119891
2901173 dotnet-runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers
1289152 dotnet/runtime System.Security.Cryptography.X509Certificates.Tests.X509FilesystemTests.CrlDiskCacheRecovers #122638

Summary

24-Hour Hit Count 7-Day Hit Count 1-Month Count
1 67 67

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions