Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Dec : Re: convert certificate from pfx to pem

www.cryer.info
Managed Newsgroup Archive

Re: convert certificate from pfx to pem

Subject:Re: convert certificate from pfx to pem
Posted by:"danny heijl" (danny_dot_heijl_at_cevi_dot_be)
Date:Thu, 6 Dec 2007 18:09:26

Paul schreef:

> Anyone knows how to do this without using openssl.exe ?
> Any functions in ssleay/libeay ?

You can use the PFX functions of the Windows Crypto-Api.

First use PFXImportCertStore, then get the certificate from the store,
convert the binary certificate blob to base64 and add the pem
header/trailer.

You can find a complete example (in C) of how to get a certificate from
a pfx file and to copy it to the users certificate store at

http://www.codeguru.com/cpp/i-n/internet/security/article.php/c6211/


Danny
---

Replies:

none

In response to:

www.cryer.info
Managed Newsgroup Archive