Beben wrote:

>Hi,
>
>
>I'm trying to add extensions to my certificate, I use:
>CertificateInfo.addExtension(org.mozilla.jss.Certs.Extension)
>and
>Extension(OBJECT_IDENTIFIER extnId, boolean critical, OCTET_STRING
>extnValue)
>but I don't know how to create my OCTET_STRING
>
What kind of extension are you trying to encode? extnValue should be the 
DER-encoding of the extension value.

>I've try to use a String.getBytes() method and OCTET_STRING(Bytes[])
>constructor, but it doesn't work...
>
Why not? What happens?



Reply via email to