Skip to content

on SSH Remote from Windows to Mac, after updating to 13.2.1, I get AppleCommonCryptoCryptographicException #15735

@burtonrodman

Description

@burtonrodman

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

I run VS Code on Windows 11, with an SSH Remote to a project on my Mac Studio.
Prior to 13.2, I hit F5 and the Dashboard launches locally (on Windows).

After updating to 13.2.1 (from 13.1.0), I get the following exception launching the project...


info: Aspire.Hosting.DistributedApplication[0]
      Aspire version: 13.2.1+14bf8c40443c690189a82ecb6565edb91dadf3b1
Aspire.Hosting.DistributedApplication: Information: Aspire version: 13.2.1+14bf8c40443c690189a82ecb6565edb91dadf3b1
Aspire.Hosting.DistributedApplication: Information: Distributed application starting.
info: Aspire.Hosting.DistributedApplication[0]
      Distributed application starting.
info: Aspire.Hosting.DistributedApplication[0]
      Application host directory is: /Users/burtonrodman/source/redacted/redacted/redacted/aspire/redacted.AppHost
Aspire.Hosting.DistributedApplication: Information: Application host directory is: /Users/burtonrodman/source/redacted/redacted/redacted/aspire/redacted.AppHost
fail: Aspire.Hosting.Dashboard[0]
      2026-03-31T16:26:18.5168110Z Failed to create resource aspire-dashboard
      Interop+AppleCrypto+AppleCommonCryptoCryptographicException: User interaction is not allowed.
         at Interop.AppleCrypto.SecKeyExportData(SafeSecKeyRefHandle key, Boolean exportPrivate, ReadOnlySpan`1 password)
         at System.Security.Cryptography.X509Certificates.AppleCertificatePal.ExportPkcs8(SafeSecKeyRefHandle key, ReadOnlySpan`1 password)
         at System.Security.Cryptography.X509Certificates.AppleCertificatePal.ExportPkcs8(ReadOnlySpan`1 password)
         at System.Security.Cryptography.X509Certificates.UnixExportProvider.BuildBags(ICertificatePalCore certPal, ReadOnlySpan`1 passwordSpan, AsnWriter tmpWriter, CertBagAsn[] certBags, AttributeAsn[] certAttrs, SafeBagAsn[] keyBags, Int32& certIdx, Int32& keyIdx)
         at System.Security.Cryptography.X509Certificates.UnixExportProvider.ExportPfx(SafePasswordHandle password)
         at System.Security.Cryptography.X509Certificates.AppleCertificatePal.Export(X509ContentType contentType, SafePasswordHandle password)
         at System.Security.Cryptography.X509Certificates.X509Certificate.Export(X509ContentType contentType, String password)
         at Aspire.Hosting.Dcp.DcpExecutor.GetCertificateKeyMaterialAsync(HttpsCertificateExecutionConfigurationData configuration, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 2853
         at Aspire.Hosting.Dcp.DcpExecutor.CreateExecutableAsync(RenderedModelResource er, ILogger resourceLogger, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 1736
         at Aspire.Hosting.Dcp.DcpExecutor.CreateResourceExecutablesAsyncCore(IResource resource, IEnumerable`1 executables, Func`4 createResourceFunc, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 1575
Aspire.Hosting.Dashboard: Error: 2026-03-31T16:26:18.5168110Z Failed to create resource aspire-dashboard
Interop+AppleCrypto+AppleCommonCryptoCryptographicException: User interaction is not allowed.
   at Interop.AppleCrypto.SecKeyExportData(SafeSecKeyRefHandle key, Boolean exportPrivate, ReadOnlySpan`1 password)
   at System.Security.Cryptography.X509Certificates.AppleCertificatePal.ExportPkcs8(SafeSecKeyRefHandle key, ReadOnlySpan`1 password)
   at System.Security.Cryptography.X509Certificates.AppleCertificatePal.ExportPkcs8(ReadOnlySpan`1 password)
   at System.Security.Cryptography.X509Certificates.UnixExportProvider.BuildBags(ICertificatePalCore certPal, ReadOnlySpan`1 passwordSpan, AsnWriter tmpWriter, CertBagAsn[] certBags, AttributeAsn[] certAttrs, SafeBagAsn[] keyBags, Int32& certIdx, Int32& keyIdx)
   at System.Security.Cryptography.X509Certificates.UnixExportProvider.ExportPfx(SafePasswordHandle password)
   at System.Security.Cryptography.X509Certificates.AppleCertificatePal.Export(X509ContentType contentType, SafePasswordHandle password)
   at System.Security.Cryptography.X509Certificates.X509Certificate.Export(X509ContentType contentType, String password)
   at Aspire.Hosting.Dcp.DcpExecutor.GetCertificateKeyMaterialAsync(HttpsCertificateExecutionConfigurationData configuration, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 2853
   at Aspire.Hosting.Dcp.DcpExecutor.CreateExecutableAsync(RenderedModelResource er, ILogger resourceLogger, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 1736
   at Aspire.Hosting.Dcp.DcpExecutor.CreateResourceExecutablesAsyncCore(IResource resource, IEnumerable`1 executables, Func`4 createResourceFunc, CancellationToken cancellationToken) in /_/src/Aspire.Hosting/Dcp/DcpExecutor.cs:line 1575
info: Aspire.Hosting.DistributedApplication[0]
      Distributed application started. Press Ctrl+C to shut down.
Aspire.Hosting.DistributedApplication: Information: Distributed application started. Press Ctrl+C to shut down.

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version info

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

Type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions