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

[iaik-jce] Cert Request usage extensions



Hi,

I am trying to set the keyusage extension on my CertificateRequest using the
following code:

	KeyUsage keyU = new KeyUsage(KeyUsage.digitalSignature |
KeyUsage.nonRepudiation);
	keyU.setCritical(true);
	cert_request.addAttribute(new Attribute(keyU.toASN1Object()));

I get the following exception when trying to sign the cert request:

ASN1: BIT STRING does not support getComponentAt(int)!

Am I going about this the right way?   How is this extension set?

Best Regards,

Kevin Crosbie

Security Consultant
TradePayment.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