Use private and public keys in java which I create in OpenSSL
posted 6 years ago
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.
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?