aspose file tools*
The moose likes Java in General and the fly likes how to generate x.509 certificate? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "how to generate x.509 certificate?" Watch "how to generate x.509 certificate?" New topic
Author

how to generate x.509 certificate?

L Willie
Ranch Hand

Joined: Aug 10, 2008
Posts: 51

above code could create certChain.db as normal.however can't generate x.509 certificate to the output file- "certChain.db".
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42282
    
  64
What does "can't generate" mean? What exactly happens if you try?


Ping & DNS - my free Android networking tools app
Matteo Di Furia
Ranch Hand

Joined: Jun 20, 2008
Posts: 102
How comes you're reading (FileInputStream) and probably wanting to write (FileOutputStream) to the same file (C:\chainCert.db)?
Other than this, I don't know if I got correctly what you're asking, but if you don't write something in the output stream (oos.write(some_obj)) you'll get nothing in the file (remember to flush and close).
L Willie
Ranch Hand

Joined: Aug 10, 2008
Posts: 51
Originally posted by Matteo Di Furia:
How comes you're reading (FileInputStream) and probably wanting to write (FileOutputStream) to the same file (C:\chainCert.db)?
Other than this, I don't know if I got correctly what you're asking, but if you don't write something in the output stream (oos.write(some_obj)) you'll get nothing in the file (remember to flush and close).

can't generate means i get nothing on the file (C:\chainCert.db).

actually i want to modify from following code


that is generate certificate before write oubject,after the oubject writeOut to file C:\chainCert.db,reading the cert from the file.
however i confuse by this code that i found from internet.it seams generateCert during read file,not before write out file.

[ October 03, 2008: Message edited by: L Willie ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to generate x.509 certificate?