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

[iaik-jce] Pb sending signed messages with certificates from an other CA



Hi,


1) key creation
We have defined a CA with Microsoft Certificate Service, then created keys
certified by this CA.
The key have been built with the "export private key" option.

The key have been directly installed in IE5 by this tool.
In outlook, A sends a signed message to B.

2) storing keys into files
In order to send signed messages with SMIMESend Sample

B exports this key into a file, say APubKey.cer
B exports from IE5 its own key (including private key) into a file
BPrivKey.pfx.
B exports from IE5 its own key (excluding private key) into a file
BPubKey.cer.

3) running SMIMESend
the source code of SMIMESend() is removed.
In start(), getting certificates of A and B :
     recipientCertificate = new X509Certificate(new FileInputStream("C:
\\APubKey.cer"));
     signerCertificate = new X509Certificate(new FileInputStream("C:
\\BPubKey.cer"));
     signerPrivateKey = (new EncryptedPrivateKeyInfo(new FileInputStream
("C:\\BPrivKey.pfx"))).getPrivateKeyInfo();

exceptions are catched and the programs throws the exception, when getting
the private key.
    iaik.asn1.CodingException: No ASN.1 AlgorithmID type!



Any help welcome !

André

     
--
Mailinglist-archive at http://jcewww.iaik.at/mailarchive/iaik-jce/jcethreads.html

To unsubscribe send an email to listserv@iaik.at with the folowing content: UNSUBSCRIBE iaik-jce