When using a self-signed certificate with Pode on macOS Sequoia, applications that define an HTTPS endpoint via Add-PodeEndpoint -Protocol Https -SelfSigned encounter the following error:
Exception calling "CreateSelfSigned" with "2" argument(s): "The specified item is no longer valid. It may have been deleted from the keychain."
This issue affects any Pode application that uses HTTPS with a self-signed certificate on macOS Sequoia.
Description:
When using a self-signed certificate with Pode on macOS Sequoia, applications that define an HTTPS endpoint via
Add-PodeEndpoint -Protocol Https -SelfSigned
encounter the following error:This issue affects any Pode application that uses HTTPS with a self-signed certificate on macOS Sequoia.
Environment:
Add-PodeEndpoint -Protocol Https -SelfSigned
Steps to Reproduce:
Expected Result:
The Pode application should start successfully with the self-signed certificate for the HTTPS endpoint.
Actual Result:
An exception is thrown:
Additional Information:
The issue is related to the .NET runtime on macOS and has been identified as a .NET issue. You can track the .NET issue here: https://github.com/dotnet/runtime/issues/106775.