|
Hi Tim,
I just started using WSS4J in the past couple weeks and have managed to get signing and encryption working both ways. As a newbie myself maybe I can give you some pointers:
First make sure you created your key pairs correctly. Remember to use the –keyalg “RSA” argument when you are creating your key-pairs for encryption. The default DSA one cannot be used for encryption (i.e. DSA = Signing, RSA = Encryption/Decryption). Also remember to use the –validity argument in conjunction with the –selfcert argument to extend the validity of your certificates to some sensible time frame.
Links, links, links and more links you might find helpful (I did at least):
Refresher course on Digital Signatures: http://www.youdzone.com/signature.html
Good article on creating and signing keys with “keytool” (ignore the WSS4J info at the end, wasn’t really helpful): http://www.devx.com/Java/Article/28816/0/page/1
Valuable WSS4J docs which have a few use case examples: http://ws.apache.org/wss4j/package.html
Other tips I can give is install and look over the source code, and check out WSHandler.java specifically so you can get a handle (no pun intended) for how all the WSHandlerConstants are used (check out the java docs for this class as well).
Good luck with WSS4J!
Richard Wareing Reimer Technology Group
-----Original Message-----
Hi there, |
- Newbie Encryption help Tim Williams
- RE: Newbie Encryption help Richard Wareing
