Solved

How to extract information from x509 Certificate?

Posted on 2004-09-17
8
1,288 Views
Last Modified: 2008-02-01
hi all,
I wish to extract information from x509Certificate, I know that we can retrieve such as certificate serial number, version subjectDN from the available API.

Is there any API available for us to retrieve information such as Common Name, Oraganization Unit, Locality etc? or we need to develop our own program to parse the information??

Please guide..thanks

0
Comment
Question by:pleasure
  • 5
  • 3
8 Comments
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
0
 

Author Comment

by:pleasure
Comment Utility
CEHJ,
X509Certificate has a method called getSubjectDN which will return the certificate's subject distinguished name. Subject DN normally will contain string like 'CN=www.experts-exchange.com.my, OU=Organization Unit, O=Oragnization'

My question is, is there any available API for us to parse 'CN=www.experts-exchange.com, OU=Organization Unit, O=Oragnization' ? For example, when I wish to get the value for CN, the API will return me 'www.experts-exchange.com'.

Is it we need to develop the program ourself?


0
 
LVL 86

Accepted Solution

by:
CEHJ earned 50 total points
Comment Utility
0
 

Author Comment

by:pleasure
Comment Utility
CEHJ,
It's new class in JDK 1.5?? do you know of any class that we can use for JDK 1.4??
0
How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Sorry - didn't notice that. Anything that implements the Name interface (since 1.3) should help. You might have to do a little hand-parsing yourself too
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
8-)
0
 

Author Comment

by:pleasure
Comment Utility
CEHJ, thanks for the information
0
 
LVL 86

Expert Comment

by:CEHJ
Comment Utility
Pleasure pleasure ;-)
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
This video teaches viewers about errors in exception handling.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now