Load pkcs12 file using gnutls

Alfredo Esteban aedelatorre at gmail.com
Sat Apr 21 17:06:25 CEST 2012

Thank for your help.

The problem is that certtool expects a file in base64 format
(p12_import function code and messages are clear):

> certtool --p12-info cert.p12
certtool: p12_import: Base64 unexpected header error.

Simple conversion doesn't work either:

> cat cert.p12 | base64 | certtool --p12-info
certtool: p12_import: Base64 unexpected header error.

This is not the case when exporting a certificate from a browser
(Firefox for example) because I think PKCS#12 is a binary format so I
don't know how to use certtool.


2012/4/21 Nikos Mavrogiannopoulos <nmav at gnutls.org>:
> On 04/21/2012 04:00 AM, Alfredo Esteban wrote:
>> Hi,
>> Is there a way to load a pkcs12 file using certtool? I read the manual
>> and found the --p12info option but I didn't find an example or a
>> description of that flag syntax.
> certtool --p12-info --infile myfile
> regards,
> Nikos

More information about the Gnutls-help mailing list