x.400 certificate extension

Discussion in 'Java' started by ba.hons, Nov 2, 2006.

  1. ba.hons

    ba.hons Guest

    hello,

    i was wondering if anyone could help as i have searched the internet
    and can find no information on my problem.

    i need to add an x.400 certificate extension to a x509 certificate in
    java, i have managed to add an IP address and a otherName attribute but
    i have NO idea on how to add the x.400 through code

    below is the code i am using to add the othername:

    SEQUENCE otherName = new SEQUENCE();
    otherName.addComponent(new ObjectID("1.3.6.1.4.1.2706.1.2.13",
    "MyOtherName"));
    otherName.addComponent(new PrintableString("This is an other name!"));
    GeneralName genName = new GeneralName(GeneralName.otherName,
    otherName);

    GeneralNames gns = new GeneralNames(gn);
    SubjectAltName san = new SubjectAltName(gns);
    X509Extensions exts = new X509Extensions();
    exts.addExtension(san);

    ANY help at all would be great, even if it is to tell me it cant be
    done!

    thanks in advance

    adam
     
    ba.hons, Nov 2, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Dan C Douglas
    Replies:
    5
    Views:
    644
    Dan C Douglas
    Jul 22, 2003
  2. Anand
    Replies:
    3
    Views:
    1,117
    Tim Daneliuk
    Nov 8, 2003
  3. Christian Seberino
    Replies:
    3
    Views:
    1,375
    Christian Seberino
    Feb 5, 2004
  4. Steve
    Replies:
    3
    Views:
    27,623
    Steve
    Aug 25, 2006
  5. Elhanan
    Replies:
    0
    Views:
    685
    Elhanan
    Jan 23, 2007
  6. llothar
    Replies:
    17
    Views:
    1,446
    Steve Holden
    Apr 7, 2008
  7. Helena Cai
    Replies:
    0
    Views:
    651
    Helena Cai
    Aug 29, 2004
  8. Replies:
    0
    Views:
    672
Loading...