![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Jun 2006
Posts: 8
Rep Power: 0
![]() |
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? |
|
|
|
|
|
#2 |
|
Newbie
Join Date: Jun 2006
Posts: 8
Rep Power: 0
![]() |
please help
|
|
|
|
|
|
#3 |
|
Expert Programmer
Join Date: Aug 2005
Location: Rotterdam, the Netherlands
Posts: 942
Rep Power: 4
![]() |
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.
|
|
|
|
|
|
#4 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
__________________
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 |
|
|
|
|
|
#5 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
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 ![]() |
|
|
|
|
|
#6 |
|
Newbie
Join Date: Jun 2006
Posts: 8
Rep Power: 0
![]() |
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? |
|
|
|
|
|
#7 |
|
Programming Guru
![]() Join Date: Aug 2005
Location: England
Posts: 1,499
Rep Power: 5
![]() |
I'd be tempted to use OpenSSL. It's a little more reliable at certificate generation than keytool.
|
|
|
|
|
|
#8 |
|
Hobbyist Programmer
Join Date: Jun 2006
Location: Ireland
Posts: 152
Rep Power: 3
![]() |
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. |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|
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 |