[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[iaik-jce] again PKCS7



Hi,

first of all: thanx a lot for your help to solve my first problem.
Now I've got another prob.
I've build some data, created a PKCS7-SignedData object and saved it to
disk. In the next step I've read the file, decoded the data and got
everything I needed.
But now I've got a signed mail, extracted the signature and wanted to decode
the signature as I did it with my own, self-created signature - with the
following result:

java.io.IOException: Next ASN.1 object is no INTEGER!
	at iaik.asn1.DerInputStream.readInteger(Unknown Source)
	at iaik.pkcs.pkcs7.SignedData.decode(Unknown Source)

Is it possible that the signature of the mail isn't correct? (signed by the
mail add-on of the german CA signtrust).

Thx (again)
Thomas

P.S.: I've attatched the signature of that mail.
 <<sig.txt>> 

GFT Technologies AG
Otto-Lilienthal-Str. 36
71034 Boeblingen, Germany

voice +49-(0)7031/714-8432, fax -840
mailto:thomas.link@gft.de


MIIIuQYJKoZIhvcNAQcCoIIIqjCCCKYCAQExCzAJBgUrDgMCGgUAMAsGCSqGSIb3DQEHAaCCA3mA
ggN1MIIDcTCCAtqgAwIBAgICBJswDQYJKoZIhvcNAQEFBQAwWzELMAkGA1UEBhMCREUxGTAXBgNV
BAoUEERldXRzY2hlIFBvc3QgQUcxMTAMBgcCggYBCgcUEwExMCEGA1UEAxQaQ0EgREVSIERFVVRT
Q0hFTiBQT1NUIDE6UE4wIhgPMjAwMDA3MDkyMjAwMDBaGA8yMDAzMDcwOTIyMDAwMFowgaExETAP
BgNVBAQTCExhbmRhdWVyMQ8wDQYDVQQqFAZK/HJnZW4xGDAWBgNVBAMUD0r8cmdlbiBMYW5kYXVl
cjEaMBgGA1UECRQRR2xhc2j8dHRlciBXZWcgMjgxDjAMBgNVBBETBTcwNTY3MRwwGgYDVQQHFBNT
dHV0dGdhcnQtTfZocmluZ2VuMQswCQYDVQQGEwJERTEKMAgGA1UEBRMBMTCBnzANBgkqhkiG9w0B
AQEFAAOBjQAwgYkCgYEAhip8s5by6e3zMz07ewgGia3rNmpsOq9OXU+ZSjAqpWiBhw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