Hi
all,
I am
trying to use Apache XML-Security in my Handler.
It
works singning a client message in a client handler and verfying in a
server handler.
But
when I try to sign the answer in the server handler using the same code
fragment, it returns a "XMLSignatureException: The requested algorithm
DSA does not exist."
SO it
has something todo with Tomcat ???
I have
the following configuration:
-
added my BouncyCastle.JAR to my classpath.
-
java.security file added :
security.provider.6=org.bouncycastle.jce.provider.BouncyCastleProvider
- extra Server-Handler Code :
Security.addProvider(new
BouncyCastleProvider());
Of
course I created 2 keystore files and it i used. I created RSA and DSA Keypairs,
but no changes except in the classname, which couldn't be
found.
Thanks
for help,
Kai
AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString:
org.apache.xml.security.signature.XMLSignatureException: The requested algorithm
DSA does not exist. Original Message was: class configured for
Signature(provider: BC)cannot be found.
org.bouncycastle.jce.provider.JDKDSASigner$stdDSA
faultActor:
faultNode:
faultDetail:
{http://xml.apache.org/axis/}stackTrace: AxisFault
faultCode:
{http://schemas.xmlsoap.org/soap/envelope/}Server.userException
faultSubcode:
faultString:
org.apache.xml.security.signature.XMLSignatureException: The requested algorithm
DSA does not exist. Original Message was: class configured for
Signature(provider: BC)cannot be found.
org.bouncycastle.jce.provider.JDKDSASigner$stdDSA
faultActor:
faultNode:
faultDetail:
org.apache.xml.security.signature.XMLSignatureException: The requested
algorithm DSA does not exist. Original Message was: class configured for
Signature(provider: BC)cannot be found.
org.bouncycastle.jce.provider.JDKDSASigner$stdDSA
at
org.apache.axis.message.SOAPFaultBuilder.createFault(SOAPFaultBuilder.java:249)
