Menu

#620 Unable to connect to amazon aws

open
nobody
general (369)
5
2015-06-17
2011-11-09
No

soapUI Pro 4.0.1, copyright (C) 2007-2011 SmartBear Software http://www.soapui.org | http://smartbear.com Build dist-142-2011-09-14, Build Date 2011/09/14 13:38

java version "1.6.0_26"
Java(TM) SE Runtime Environment (build 1.6.0_26-b03-384-10M3425)
Java HotSpot(TM) 64-Bit Server VM (build 20.1-b02-384, mixed mode)

Darwin verhasi.local 10.8.0 Darwin Kernel Version 10.8.0: Tue Jun 7 16:33:36 PDT 2011; root:xnu-1504.15.3~1/RELEASE_I386 i386
Mac OS X Version 10.6.8

I have followed the steps of http://www.soapui.org/SOAP-and-WSDL/applying-ws-security.html successfully until tried to send the request it failed as

Wed Nov 09 00:25:40 CET 2011:ERROR:org.apache.ws.security.WSSecurityException: Signature creation failed; nested exception is:
org.apache.xml.security.signature.XMLSignatureException: Sorry, you supplied the wrong key type for this operation! You supplied a sun.security.rsa.RSAPrivateCrtKeyImpl but a javax.crypto.SecretKey is needed.
org.apache.ws.security.WSSecurityException: Signature creation failed; nested exception is:
org.apache.xml.security.signature.XMLSignatureException: Sorry, you supplied the wrong key type for this operation! You supplied a sun.security.rsa.RSAPrivateCrtKeyImpl but a javax.crypto.SecretKey is needed.
at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:717)
at org.apache.ws.security.message.WSSecSignature.build(WSSecSignature.java:780)
at com.eviware.soapui.impl.wsdl.support.wss.entries.AddSignatureEntry.process(AddSignatureEntry.java:200)
at com.eviware.soapui.impl.wsdl.support.wss.OutgoingWss.processOutgoing(OutgoingWss.java:157)
at com.eviware.soapui.impl.wsdl.submit.filters.WssRequestFilter.filterWsdlRequest(WssRequestFilter.java:58)
at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterAbstractHttpRequest(AbstractRequestFilter.java:37)
at com.eviware.soapui.impl.wsdl.submit.filters.AbstractRequestFilter.filterRequest(AbstractRequestFilter.java:31)
at com.eviware.soapui.impl.wsdl.submit.transports.http.HttpClientRequestTransport.sendRequest(HttpClientRequestTransport.java:133)
at com.eviware.soapui.impl.wsdl.WsdlSubmit.run(WsdlSubmit.java:123)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:680)
Caused by: org.apache.xml.security.signature.XMLSignatureException: Sorry, you supplied the wrong key type for this operation! You supplied a sun.security.rsa.RSAPrivateCrtKeyImpl but a javax.crypto.SecretKey is needed.
at org.apache.xml.security.algorithms.implementations.IntegrityHmac.engineInitSign(Unknown Source)
at org.apache.xml.security.algorithms.SignatureAlgorithm.initSign(Unknown Source)
at org.apache.xml.security.signature.XMLSignature.sign(Unknown Source)
at org.apache.ws.security.message.WSSecSignature.computeSignature(WSSecSignature.java:713)
... 14 more

I think it is not a configuration problem! The details of the signature configuration you can find attached.

Discussion

  • Verhás István

    Verhás István - 2011-11-09

    signature configuration details

     
  • Anonymous

    Anonymous - 2011-11-09

    Hi,

    I've added this into our bug tracking system. We'll keep you informed about the status.

    regards!
    Predrag
    SmartBear Software

     

    Last edit: Anonymous 2015-06-17
  • Gabriel

    Gabriel - 2015-06-17

    Hi,

    We had the same problem too. The solution is to install Java 7. I don't know about other versions of Java. We tested using SoapUI 5.1.13.

    I hope this helps and it's not too late
    cheers

     

Log in to post a comment.