gnupg2: gpg-protect-tool fails to decrypt PKCS-12 files

Stefan Hinker stefan at
Wed Jun 22 22:36:17 CEST 2005

Package: gnupg2
Version: 1.9.15-3ubuntu5
Severity: important
Tags: patch

pgp-protect-tool is not able to decrypt PKCS-12 files.  Therefore,
you can not use gpgsm to import and use your own certificates.
Here's an example:

/usr/lib/gnupg2/gpg-protect-tool --p12-import certs.p12
gpg-protect-tool: error at "bags", offset 24
gpg-protect-tool: error parsing or decrypting the PKCS-12 file

This was already reported at:
with a patch described here:

Thanks for fixing this!


-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.10-5-686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)

Versions of packages gnupg2 depends on:
ii  libc6               2.3.2.ds1-20ubuntu13 GNU C Library: Shared libraries 
ii  libgcrypt11         1.2.0-11             LGPL Crypto library - runtime 
ii  libgpg-error0       1.0-1                library for common error values 
ii  libksba8            0.9.9-2              X.509 and CMS support library
ii  makedev             2.3.1-75ubuntu1      Creates device files in /dev
ii  zlib1g              1:1.2.2-4ubuntu1     compression library - runtime

-- no debconf information
Stefan Hinker                                        email: stefan at
                                      PGP public key @
This is Unix-Land. In quiet nights, you can hear the Windows machines reboot.

More information about the Gnupg-devel mailing list