aspose file tools*
The moose likes Security and the fly likes Use private and public keys in java which I create in OpenSSL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Security
Bookmark "Use private and public keys in java which I create in OpenSSL" Watch "Use private and public keys in java which I create in OpenSSL" New topic
Author

Use private and public keys in java which I create in OpenSSL

Vasif Mustafayev
Greenhorn

Joined: Aug 07, 2010
Posts: 14
hi,
I must write web app which gets XML from other server then doing something and creates response XML file.
so I want verify and sign this XMLs. I have private and public key pairs and I have public key of other server.
(I generate this in OpenSSL)

I can do this by calling java Runtime exec() method (for execute .bat file and verify - sign ) but it is bad.

Question:
Is there any way do this? (Example, import any jar file and write code which uses this key pairs verify - sign)
Is there any library do this?

please help me


|SCJP 6.0 80%| |SCWCD in progress|
Mike Peters
Ranch Hand

Joined: Oct 10, 2009
Posts: 67

Maybe you can get some help from this link: http://java.sun.com/developer/technicalArticles/xml/dig_signatures/


Mike Peters
Vasif Mustafayev
Greenhorn

Joined: Aug 07, 2010
Posts: 14
Thanks. I've solved this problem. If somebody needs help please contact with me ...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Use private and public keys in java which I create in OpenSSL