microsoft / microsoft/aspire

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

Open
#15,735 6 comments 0 reactions 1 assignee Claimed by @danegsta View on GitHub
area-app-model
Dominant language
C#
Stars
6.3k
Forks
991
Avg merge
2d 15h
Merged PRs (30d)
196

Description

### Is there an existing issue for this?

- [x] 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_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.