Error at "bag.attributes" importing key from freemail cert into gpgsm

Nicholas Sushkin nsushkin at sushkins.net
Thu Apr 7 22:15:30 CEST 2005


Hi,

I am trying to import into gpgsm a thawte freemail s/mime certificate I 
exported from Firefox in p12 format. I followed the instructions in the 
Welwarsky's mini-howto.

openssl pkcs12 -in ~/keys/thawte-nsushkin_sushkins_net-exp20060407.p12 -out 
~/keys/thawte-nsushkin_sushkins_net-exp20060407.pem -nodes 

openssl pkcs12 -in thawte-nsushkin_sushkins_net-exp20060407.pem -export  
-nocerts -nodes -out thawte-nsushkin_sushkins_net-exp20060407.privatekey.p12

gpgsm --call-protect-tool --p12-import --store 
thawte-nsushkin_sushkins_net-exp20060407.privatekey.p12

After I enter my passphrase, I am getting the errors listed below. Am I doing 
something wrong or did I hit a bug?

Thanks.

gpg-agent[21705]: handler for fd 0 started
gpg-agent[21705.0x8075458] DBG: -> OK Pleased to meet you
gpg-agent[21705.0x8075458] DBG: <- OPTION display=:0
gpg-agent[21705.0x8075458] DBG: -> OK
gpg-agent[21705.0x8075458] DBG: <- OPTION ttyname=/dev/pts/1
gpg-agent[21705.0x8075458] DBG: -> OK
gpg-agent[21705.0x8075458] DBG: <- OPTION ttytype=xterm
gpg-agent[21705.0x8075458] DBG: -> OK
gpg-agent[21705.0x8075458] DBG: <- OPTION lc-ctype=C
gpg-agent[21705.0x8075458] DBG: -> OK
gpg-agent[21705.0x8075458] DBG: <- OPTION lc-messages=C
gpg-agent[21705.0x8075458] DBG: -> OK
gpg-agent[21705.0x8075458] DBG: <- GET_PASSPHRASE X X Passphrase: 
Please+enter+the+passphrase+to+unprotect+the+PKCS#12+object.
gpg-agent[21705]: starting a new PIN Entry
gpg-agent[21705]: DBG: connection to PIN entry established
gpg-agent[21705.0x8075458] DBG: -> [Confidential data not shown]
gpg-protect-tool: 2600 bytes of RC2 encrypted text
gpg-agent[21705.0x8075458] DBG: <- [EOF]
gpg-agent[21705]: handler for fd 0 terminated
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
-----BEGIN CERTIFICATE-----
...
-----END CERTIFICATE-----
gpg-protect-tool: encryptedData error at "bag.attributes", offset 2592
gpg-protect-tool: error at "bag.encryptedData", offset 49
gpg-protect-tool: error parsing or decrypting the PKCS-12 file

-- 
Nick



More information about the Gnupg-users mailing list