On Wed, Mar 02, 2005, Carlos Roberto Zainos H wrote:

> Hi there!!!
>  
> I'm trying to use the openssl pkcs12 option from command line but  I don't 
> undestand very well the options.
>  
> I have a pair (private key and certificate file) both in PEM format. I want 
> to get a PKCS#12 file which content both. I would like importa that (the 
> PKCS12 file) into MS Outlook or Outlook Express.
>  
> My command line looks like:
> C:\>openssl pkcs12 -inkey llaveAM02.pem -certfile agente_monitor02.pem /
> -CAfile certac.pem -out prueba1.p12 -export
>  
> The .p12 file is created but it's empty
>  

There's an FAQ on my homepage and detailed examples. If you've got
certificates and keys in separate files liek that then:

openssl pkcs12 -in cert.pem -inkey key.pem -certfile cacerts.pem -export -name
"some name"

should do.

> Another question.... If I want programming my owns pkcs12 apps with the 
> openssl API ....where can I get examples o hints??
>  
> Any help is usefull
>  

demos/pkcs12 has some samples. The manual pages for PKCS12_parse() and
PKCS12_create() also contain detailed info.

Steve.
--
Dr Stephen N. Henson. Email, S/MIME and PGP keys: see homepage
OpenSSL project core developer and freelance consultant.
Funding needed! Details on homepage.
Homepage: http://www.drh-consultancy.demon.co.uk
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to