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

[iaik-jce] New ObjectID (1.2.840.10040.4.1) for DSA not supported



Hello,

I have a X509Certificate with the ObjectID 1.2.840.10040.4.1 for the
AlgorithmIdentifier in SubjectPublicKeyInfo (ASN1-Syntax see below).

TBSCertificate  ::=  SEQUENCE  {
   ...
   ...

   subjectPublicKeyInfo SubjectPublicKeyInfo,
   ...
}


SubjectPublicKeyInfo  ::=  SEQUENCE  {
   algorithm            AlgorithmIdentifier,
   subjectPublicKey     BIT STRING
}

If I want to create an instance of X509Certificate with a DER-encoded
ByteArray as argument I get the following Exception:

java.security.cert.CertificateException: PublicKey algorithm not
implemented: 1.2.840.10040.4.1
	at iaik.x509.X509Certificate.b(Unknown Source)
	at iaik.x509.X509Certificate.<init>(Unknown Source)
 	at ...

I use IAIK-JCE version 2.5 (more exact 2.5100000000000002).
A colleage told me that the ObjectID mentioned above is the new ID for the
DSA algorithm. The old ObjectID for DSA is 1.3.14.3.2.12.

How can I avoid this exception? The Solution should not prevent me from
using the verify-Method.
Will IAIK support the new ObjectID for DSA in further versions?  
 

Bye
 

 

> Andreas Siglreithmayr
> Development
> 
> memIQ AG
Hans-Pinsel-Straße 9a/Erdgeschoß
D-85540 Haar
> Phone: +49.(0)89.4563.9325
> mailto:andreas.siglreithmayr@memIQ.com
> 
> 
> 
--
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