Files
certmgr/certmgrTest/CertStoreStorageTest.cs
2025-11-02 15:52:04 +01:00

21 lines
625 B
C#

using CertMgr.Core.Storage;
using NUnit.Framework;
namespace certmgrTest;
public class CertStoreStorageTest
{
[Test]
public async Task First()
{
using (MemoryStream target = new MemoryStream())
{
CertStoreStorage storage = new CertStoreStorage();
CertStoreStorageContext context = new CertStoreStorageContext(CertStoreLocation.User, CertStoreName.My, System.Security.Cryptography.X509Certificates.X509KeyStorageFlags.DefaultKeySet);
context.Password = "aaa";
await storage.ReadAsync(target, context, CancellationToken.None);
}
}
}