riok/Kreya

TLS self-signed certs are invalid on MacOS 15.0

Opened this issue · 1 comments

ni507 commented

TLS self-signed certs are invalid on MacOS 15.0. It worked before (MacOS 14.0) and it works on windows.

Interop+AppleCrypto+AppleCommonCryptoCryptographicException: The specified item is no longer valid. It may have been deleted from the keychain.
   at Interop.AppleCrypto.X509CopyWithPrivateKey(SafeSecCertificateHandle certHandle, SafeSecKeyRefHandle privateKeyHandle, SafeKeychainHandle targetKeychain)
   at System.Security.Cryptography.X509Certificates.AppleCertificatePal.CopyWithPrivateKey(SafeSecKeyRefHandle privateKey)
   at System.Security.Cryptography.X509Certificates.AppleCertificatePal.CopyWithPrivateKey(RSA privateKey)
   at System.Security.Cryptography.X509Certificates.RSACertificateExtensions.CopyWithPrivateKey(X509Certificate2 certificate, RSA privateKey)
   at System.Security.Cryptography.X509Certificates.X509Certificate2.ExtractKeyFromPem[TAlg](ReadOnlySpan`1 keyPem, String[] labels, Func`1 factory, Func`2 import)
   at System.Security.Cryptography.X509Certificates.X509Certificate2.CreateFromPem(ReadOnlySpan`1 certPem, ReadOnlySpan`1 keyPem)
   at Kreya.Core.Certificates.Handler.KeyCertFile.KeyCertFileCertificateHandler.LoadCertificate(ICertificate`1 certificate)

Screenshots
image (5)

Environment (if possible, copy the information from the error dialog or the About menu):

  • OS: MacOS 15.0
ni507 commented

This has been fixed in the latest beta version and will be released in the next stable version