Service Virtualization

Expand all | Collapse all

testcase with end point is working and wsdl url is not working

Jump to Best Answer
  • 1.  testcase with end point is working and wsdl url is not working

    Posted 02-16-2018 02:04 AM

    I have created a test case (to invoke ssl service) . It is wokring fine with end point. But if i chnage same end point to wsdl url it is throwing certificate error.

     

    The same error I am getting even when I am trying to create a virtual service. Please help. PFB the error details

     

    [  14] Thread-162, WRITE: TLSv1.2 Change Cipher Spec, length = 1
    [  14] *** Finished
    [  14] verify_data:  { 5, 147, 37, 81, 115, 217, 178, 7, 137, 100, 165, 66 }
    [  14] ***
    [  14] Thread-162, WRITE: TLSv1.2 Handshake, length = 96
    [  14] Thread-162, READ: TLSv1.2 Alert, length = 2
    [  14] Thread-162, RECV TLSv1.2 ALERT:  fatal, certificate_unknown
    [  14] %% Invalidated:  [Session-17, TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384]
    [  14] Thread-162, called closeSocket()
    [  14] Thread-162, handling exception: javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
    [  14] Thread-162, called close()
    [  14] Thread-162, called closeInternal(true)
    [  14] [SSL Handshake Summary] Thread [Thread-162]



  • 2.  Re: testcase with end point is working and wsdl url is not working

     
    Posted 02-16-2018 10:17 AM

    Hello Sai,

     

    Do you know if the endpoint is configured with 2-way SSL authentication? If yes, you will need to add the client keystore under the SSL tab in the WebService Execution step (select the PRO icon to show this tab).

    If you are not adding the client certs and the server requests one, DevTest will send the webreckey.ks - a self-signed keystore delivered with DevTest.

     

    If you have the entire SSL handshake log it will help identifying if server requests and client certificate (2-way SSL) and what DevTest is sending.

     

    Hope it helps.

    Heloisa



  • 3.  Re: testcase with end point is working and wsdl url is not working

    Posted 02-19-2018 12:23 AM

    Hi Heloisa,

     

    Thanks for your response. I am trying to test a webservice which is an ssl service . I have configured client store under ssl tab of webservice invocation .

     

    Also if I give only end point without giving ?wsdl (same url without ?wsdl) ; this is returning a correct response and it is not throwing any errors.

     

    PFB the log with ?wsdl  (https://{{WSSERVER}}:{{WSPORT}}/testPS/V1?wsdl)

     

    [SSL Handshake Summary] Thread [Thread-156]
    [   2] [SSL Handshake Summary] Acting as a Client
    [   2] [SSL Handshake Summary]  *†‡ indicates linked optional steps
    [   2] [SSL Handshake Summary]
    [   2] [SSL Handshake Summary]  1  RUN                             Client Hello -->
    [   2] [SSL Handshake Summary]  2  RUN                                          <-- Server Hello                      
    [   2] [SSL Handshake Summary]  3* RUN                                          <-- Server Certificate (Public Key)   
    [   2] [SSL Handshake Summary]  4† RUN                                          <-- Request Client Certificate        
    [   2] [SSL Handshake Summary]  5* ASSUMED  Verify and Trust Server Certificate v 
    [   2] [SSL Handshake Summary]  6‡ RUN                                          <-- Server Key Exchange               
    [   2] [SSL Handshake Summary]  7  RUN                                          <-- Server Hello Done                 
    [   2] [SSL Handshake Summary]  8† RUN          Client Certificate (Public Key) -->
    [   2] [SSL Handshake Summary]  9† UNKNOWN                                        v Verify and Trust Client Certificate
    [   2] [SSL Handshake Summary] 10  RUN                      Client Key Exchange -->
    [   2] [SSL Handshake Summary] 11† RUN          Certificate Verify Confirmation -->
    [   2] [SSL Handshake Summary] 12  RUN                Client Change Cipher Spec -->
    [   2] [SSL Handshake Summary] 13  RUN                          Client Finished -->
    [   2] [SSL Handshake Summary] 14  UNKNOWN                                      <-- Server Change Cipher Spec         
    [   2] [SSL Handshake Summary] 15  UNKNOWN                                      <-- Server Finished                   
    [   2] [SSL Handshake Summary]
    [   2] [SSL Handshake Summary] RECV TLSv1.2 ALERT:  fatal, certificate_unknown
    [   2] [SSL Handshake Summary] javax.net.ssl.SSLHandshakeException: Received fatal alert: certificate_unknown
    [   2] [SSL Handshake Summary] There was a problem with the Client identity certificate
    [   3] Finalizer, called close()

     

     

    PFB the log only when end point is given ((https://{{WSSERVER}}:{{WSPORT}}/testPS/V1)

     

    [SSL Handshake Summary] Thread [Thread-178]
    [   5] [SSL Handshake Summary] Acting as a Client
    [   5] [SSL Handshake Summary]  *†‡ indicates linked optional steps
    [   5] [SSL Handshake Summary]
    [   5] [SSL Handshake Summary]  1  RUN                             Client Hello -->
    [   5] [SSL Handshake Summary]  2  RUN                                          <-- Server Hello                      
    [   5] [SSL Handshake Summary]  3* RUN                                          <-- Server Certificate (Public Key)   
    [   5] [SSL Handshake Summary]  4† RUN                                          <-- Request Client Certificate        
    [   5] [SSL Handshake Summary]  5* ASSUMED  Verify and Trust Server Certificate v 
    [   5] [SSL Handshake Summary]  6‡ RUN                                          <-- Server Key Exchange               
    [   5] [SSL Handshake Summary]  7  RUN                                          <-- Server Hello Done                 
    [   5] [SSL Handshake Summary]  8† RUN          Client Certificate (Public Key) -->
    [   5] [SSL Handshake Summary]  9† ASSUMED                                        v Verify and Trust Client Certificate
    [   5] [SSL Handshake Summary] 10  RUN                      Client Key Exchange -->
    [   5] [SSL Handshake Summary] 11† RUN          Certificate Verify Confirmation -->
    [   5] [SSL Handshake Summary] 12  RUN                Client Change Cipher Spec -->
    [   5] [SSL Handshake Summary] 13  RUN                          Client Finished -->
    [   5] [SSL Handshake Summary] 14  RUN                                          <-- Server Change Cipher Spec         
    [   5] [SSL Handshake Summary] 15  RUN                                          <-- Server Finished

     

    Regards,

    Sai Sirisha



  • 4.  Re: testcase with end point is working and wsdl url is not working

    Posted 02-20-2018 06:21 PM

    Hi Sai Sirisha,

                           What is the operation that you are selecting available under the wsdl?

                                                                  Thanks,

    Vish



  • 5.  Re: testcase with end point is working and wsdl url is not working
    Best Answer

    Posted 02-21-2018 12:07 AM

    Hi,

     

    Its working fine now. After configuring client certificate properties it is working fine

     

     

    Regards,

    Sai Sirisha