Forum Discussion

duong's avatar
duong
Frequent Visitor
8 years ago
Solved

SoapUI error by communicating with message security WCF server

Hi there,

 

I use SoapUI 5.2.1 and Ready! API 1.6 to connect with the server which implements a message security via WCF. I received .cer file from the Server team and added the .cer file into SoapUI via File->Preferences->SSL Settings with checked "Client authentication". 

 

When I called a method from the server (OperationContract), it gives the following error:

"Error getting response for [soap.GetServiceTasksByServiceObjectId:Request 1]; java.net.SocketException: Connection reset"

 

I have found several articles from internet, such as:

http://geekswithblogs.net/gvdmaaden/archive/2011/02/24/how-to-configure-soapui-with-client-certificate-authentication.aspx

http://scn.sap.com/blogs/srikanthforsap/2011/01/06/soap-ui-tool--soap-https-client-authentication

 

But all of them related to keystore (.pfx) which I cannot get from the Server. As I understand, .pfx file is used at the Server to verify and decrypt/encrypt the message. This file is not used at the client side.

 

After discussed with the server team, I got .pfx file just for testing. I followed the steps in the above links. But I got the same error.

 

Can someone help me to use SoapUI with .cer file. Or SoapUI doesn't work with .cer and WCF?

 

Thanks in advance.

  • Hi,

     

    I don't know much about WCF, but to my knowledge SoapUI uses Java Keystore (JKS) files to store and access any certficates it needs. SoapUI can easily handle client certifcates this way allowing you to make requests to services requiring client certificate authentication. This can be setup under the SoapUI preferences - you'll find a good few community posts on this if you need help or ask more questions here.

     

    So I think you may need to convert your pfx certifcate to a java keystore before you can use it e.g. something like

     

    http://stackoverflow.com/questions/4217107/how-to-convert-pfx-file-to-keystore-with-private-key

     

    Regards,

    Rupert

1 Reply

  • rupert_anderson's avatar
    rupert_anderson
    Valued Contributor

    Hi,

     

    I don't know much about WCF, but to my knowledge SoapUI uses Java Keystore (JKS) files to store and access any certficates it needs. SoapUI can easily handle client certifcates this way allowing you to make requests to services requiring client certificate authentication. This can be setup under the SoapUI preferences - you'll find a good few community posts on this if you need help or ask more questions here.

     

    So I think you may need to convert your pfx certifcate to a java keystore before you can use it e.g. something like

     

    http://stackoverflow.com/questions/4217107/how-to-convert-pfx-file-to-keystore-with-private-key

     

    Regards,

    Rupert