Jaroslav Imrich
Jaroslav Imrich
OK so let's sum it up once again: * the version of Pkcs11Interop you are using: > Pkcs11Interop 5.1.2 * the version of .NET you are using: > .NET 7...
Could you please add following code to your application and let me know what it prints to STDOUT? ```csharp Console.WriteLine($"Is Windows: {System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Windows)}"); Console.WriteLine($"Is Windows: {System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.Linux)}"); Console.WriteLine($"Is Windows: {System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.OSX)}"); ```
Welp, `System.Runtime.InteropServices.RuntimeInformation.IsOSPlatform(OSPlatform.OSX)` returning `false` in .NET 7 MAUI app running on macOS 12.6.1 is an issue that should be fixed in https://github.com/dotnet/runtime/.
Could any of you please share with me a minimal MAUI app that replicates the problem? So I can easily run [Minimal, Reproducible Example](https://stackoverflow.com/help/minimal-reproducible-example).
@Thordax the project you provided does not build on my mac. I had to disable Android and iOS platforms in `turbosingv3` project in order to get rid of some errors...
Nope. I am not currently working on anything MAUI or maccatalyst related.
If you want to use `CKM_RSA_PKCS` mechanism, you need to compute hash e.g. SHA256 of the input data, put that hash into `DigestInfo` structure defined in PKCS#1 and pass DER...
You are currently experimenting with very low level RSA signatures while you need to create high-level CMS signature: - [`Pkcs11Interop.X509Store`](https://github.com/Pkcs11Interop/Pkcs11Interop.X509Store) library can be used with a built-in .NET `SignedCms` class...
Import certificate stored in `signpath.pem` file into your HSM with [Pkcs11Admin](https://pkcs11admin.net/) application and try to use `Pkcs11Interop.X509Store` again.
@angelru could you please help me to understand the root cause of this issue by providing more high-level description of your problem? By high-level I mean: - Why are you...