I'm trying to import certificate (smime) with extension .p7b to windows store.
This is the current code
X509Certificate2 cert = new X509Certificate2(@"C:\test_public_cert.p7b");
X509Store store = new X509Store(StoreName.AddressBook, StoreLocation.LocalMachine);
store.Open(OpenFlags.ReadWrite);
store.Add(cert);
It gave me an error that "Cannot find the original signer".
Remark: This code is working with .cer extensions (DER & Base 64).
Anyone please help to identify the possible root clause?
Thanks.
PS. VS2010, Windows Server 2008 R2
Edit1: test_public_cert.p7b was exported from public key on another server via mmc console.