Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Oct 15th, 2006, 8:52 AM   #1
smith.norton
Newbie
 
Join Date: Jun 2006
Posts: 8
Rep Power: 0 smith.norton is on a distinguished road
Create certificates using Java

Can I create a certificate, that is, .cer and .pfx files using Java?

If so, can you please give me names of the classes from where I can start working?
smith.norton is offline   Reply With Quote
Old Oct 15th, 2006, 10:42 AM   #2
smith.norton
Newbie
 
Join Date: Jun 2006
Posts: 8
Rep Power: 0 smith.norton is on a distinguished road
please help
smith.norton is offline   Reply With Quote
Old Oct 15th, 2006, 11:57 AM   #3
Polyphemus_
Expert Programmer
 
Polyphemus_'s Avatar
 
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4 Polyphemus_ is on a distinguished road
Be patient, my boy. Find information about the file formats (structure, etcetera). Classes you will need are those to read and write files - probably in binary format, I don't know anything about .cer and .pfx files.
Polyphemus_ is offline   Reply With Quote
Old Oct 15th, 2006, 12:24 PM   #4
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Starting place.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Oct 15th, 2006, 5:00 PM   #5
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
DaWei gives a good starting point. Try googling around for keytool and openssl - those are the programs most commonly used for this sort of thing. I'll warn you now, though, it's not an easy or intuitive process, and you can find yourself wondering why the hell your certificate isn't being validated.

Yes, I've had some bad experience with this
Arevos is offline   Reply With Quote
Old Oct 16th, 2006, 4:05 AM   #6
smith.norton
Newbie
 
Join Date: Jun 2006
Posts: 8
Rep Power: 0 smith.norton is on a distinguished road
Thank you everyone for replying. Actually, I know the concepts of CA, CA chains, certificates, PKCS #12, etc.

I have also tried to solve my problem with keytool before posting this. With keytool I could generate a self-signed CA certificate. But I couldn't create other certificates (web-site certificate as well as personal certificates for client authentication) signed with this CA certificate. So, I thought I would write my own Java program that would create these CA signed certificates.

I still couldn't figure how to do it using keytool or Java?
smith.norton is offline   Reply With Quote
Old Oct 16th, 2006, 5:27 AM   #7
Arevos
Programming Guru
 
Arevos's Avatar
 
Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5 Arevos is on a distinguished road
I'd be tempted to use OpenSSL. It's a little more reliable at certificate generation than keytool.
Arevos is offline   Reply With Quote
Old Oct 16th, 2006, 5:37 AM   #8
Eoin
Hobbyist Programmer
 
Eoin's Avatar
 
Join Date: Jun 2006
Location: Ireland
Posts: 152
Rep Power: 3 Eoin is on a distinguished road
I second OpenSSL, on windows the prebuilt binaries by Shining Light Productions together with some web resources should be all you need.
__________________
Visit my website BinaryNotions.
Eoin is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming with Java: Tutorial ReggaetonKing Java 7 May 20th, 2008 10:58 AM
Special browser in Java (Project) stalefish Java 3 Feb 9th, 2008 4:22 PM
First Java Program duale2005 Java 3 May 22nd, 2006 5:17 PM
Java programmers, game developers, artists, be ware! RPG game team is recruiting! atcomputers.us Paid Job Offers 7 Sep 25th, 2005 7:25 PM
Java script problem zeotrex JavaScript and Client-Side Browser Scripting 5 Sep 2nd, 2005 5:30 AM




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 10:01 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC