Archived Forum Post

Index of archived forum posts

Question:

Extract multiple certificate from p7m

May 06 '15 at 09:01

Can i extract multiple certificate from p7m? I've a multi signed p7m file and this is a piece of code i use :

var CryptEngine = new Crypt2();
CryptEngine.CryptAlgorithm = "pki";
Chilkat.Cert cert = new Cert();
cert.LoadFromBinary(fileData);

fileData is the p7m byte array. I successful get all the info about one certificate but can't get the other certificate data.

Any idea?


Accepted Answer

Thanks. Chilkat v9.5.0.49 has a new Pem class that can do it. Here's an example for loading from a .p7b file. There is also a LoadP7b method to load directly from in-memory p7b data.

I can provide a pre-release download if I know what programming language/operating system you need..

Android: Load P7B and List Certificates

C: Load P7B and List Certificates

C#: Load P7B and List Certificates

C# WinRT: Load P7B and List Certificates

C++: Load P7B and List Certificates

Classic ASP: Load P7B and List Certificates

DataFlex: Load P7B and List Certificates

Delphi ActiveX: Load P7B and List Certificates

Delphi DLL: Load P7B and List Certificates

Java: Load P7B and List Certificates

Lianja: Load P7B and List Certificates

MFC: Load P7B and List Certificates

Objective-C: Load P7B and List Certificates

Perl: Load P7B and List Certificates

PHP ActiveX: Load P7B and List Certificates

PHP Extension: Load P7B and List Certificates

PowerBuilder: Load P7B and List Certificates

PowerShell: Load P7B and List Certificates

PureBasic: Load P7B and List Certificates

Python: Load P7B and List Certificates

Ruby: Load P7B and List Certificates

SQL Server: Load P7B and List Certificates

Swift: Load P7B and List Certificates

Unicode C: Load P7B and List Certificates

Unicode C++: Load P7B and List Certificates

VB.NET: Load P7B and List Certificates

VB.NET WinRT: Load P7B and List Certificates

VBScript: Load P7B and List Certificates

Visual Basic 6.0: Load P7B and List Certificates

Visual FoxPro: Load P7B and List Certificates