This discussion is archived
3 Replies Latest reply: Mar 12, 2012 2:25 PM by 766878 RSS

Unsupported key type: Sun DSA Public Key

766878 Newbie
Currently Being Moderated
Hi all,

Does anyone know how to use the SHA1withDSA algorithm with WSS4J/Axis?

When using a private key generated by keytool with type DSA, I get the errors:

org.apache.ws.security.WSSecurityException: Cannot encrypt data
Caused by: java.security.InvalidKeyException: Unsupported key type: Sun DSA Public Key

It seems I have to generate the key using type RSA.

Regards,
Alex

Edited by: ao on 2012-mar-12 12:53

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points