Service Virtualization

  • 1.  Not able to test secure Rest service using Rest Step

    Posted Sep 12, 2017 07:01 AM

    Hello all,

     

    Need urgent help. I am trying to test one Rest URL using test step and I am getting SSL exception. I tried using certificate and configuring it in local.properties file but still getting error.

     

    When I tried to run URL using I.E, we are getting response in form of JSON file. What is wrong with test case in Lisa?

     

    Can some one help me here, please?

     

    Cheers..

     

    Shivam Garg



  • 2.  Re: Not able to test secure Rest service using Rest Step
    Best Answer

    Broadcom Employee
    Posted Sep 12, 2017 12:52 PM

    Hi Shivam,

     

    Can you open a support case and we can do a WebEx and help you with the issue.

     

    Thanks,

    Prema



  • 3.  Re: Not able to test secure Rest service using Rest Step

    Posted Sep 13, 2017 12:58 AM

    Hello Prema,

     

    I already raised support ticket for this issue. 00839796.

     

    Cheers..

    Shivam Garg



  • 4.  Re: Not able to test secure Rest service using Rest Step

    Posted Sep 13, 2017 03:01 AM

    Hello Dinesh,

     

    I tried what ever was mentioned in thread provided by you. But still getting SSL exception. When I am using HTTP/DEBUG in help button, I am getting below details.

     

    Please suggest why it is happening.

     

    [   1] ***
    [   1] ProcDlgThreadCallbk@9f37de, WRITE: SSLv3 Handshake, length = 64
    [   1] ProcDlgThreadCallbk@9f37de, handling exception: java.net.SocketException: Software caused connection abort: recv failed
    [   1] %% Invalidated:  [Session-1, SSL_RSA_WITH_3DES_EDE_CBC_SHA]
    [   1] ProcDlgThreadCallbk@9f37de, SEND SSLv3 ALERT:  fatal, description = unexpected_message
    [   1] ProcDlgThreadCallbk@9f37de, WRITE: SSLv3 Alert, length = 24
    [   1] ProcDlgThreadCallbk@9f37de, Exception sending alert: java.net.SocketException: Software caused connection abort: socket write error
    [   1] ProcDlgThreadCallbk@9f37de, called closeSocket()
    [   1] ProcDlgThreadCallbk@9f37de, IOException in getSession():  java.net.SocketException: Software caused connection abort: recv failed
    [   1] ProcDlgThreadCallbk@9f37de, called close()
    [   1] ProcDlgThreadCallbk@9f37de, called closeInternal(true)
    [   1] ProcDlgThreadCallbk@9f37de, called close()
    [   1] ProcDlgThreadCallbk@9f37de, called closeInternal(true)
    [   1] [SSL Handshake Summary] Thread [ProcDlgThreadCallbk@9f37de]
    [   1] [SSL Handshake Summary] Acting as a Client
    [   1] [SSL Handshake Summary]  *†‡ indicates linked optional steps
    [   1] [SSL Handshake Summary]
    [   1] [SSL Handshake Summary]  1  RUN                             Client Hello -->
    [   1] [SSL Handshake Summary]  2  RUN                                          <-- Server Hello                      
    [   1] [SSL Handshake Summary]  3* RUN                                          <-- Server Certificate (Public Key)   
    [   1] [SSL Handshake Summary]  4† SKIPPED                                      <-- Request Client Certificate        
    [   1] [SSL Handshake Summary]  5* UNKNOWN  Verify and Trust Server Certificate v 
    [   1] [SSL Handshake Summary]  6‡ SKIPPED                                      <-- Server Key Exchange               
    [   1] [SSL Handshake Summary]  7  RUN                                          <-- Server Hello Done                 
    [   1] [SSL Handshake Summary]  8† SKIPPED      Client Certificate (Public Key) -->
    [   1] [SSL Handshake Summary]  9† SKIPPED                                        v Verify and Trust Client Certificate
    [   1] [SSL Handshake Summary] 10  RUN                      Client Key Exchange -->
    [   1] [SSL Handshake Summary] 11† SKIPPED      Certificate Verify Confirmation -->
    [   1] [SSL Handshake Summary] 12  RUN                Client Change Cipher Spec -->
    [   1] [SSL Handshake Summary] 13  RUN                          Client Finished -->
    [   1] [SSL Handshake Summary] 14  UNKNOWN                                      <-- Server Change Cipher Spec         
    [   1] [SSL Handshake Summary] 15  UNKNOWN                                      <-- Server Finished                   
    [   1] [SSL Handshake Summary]
    [   1] [SSL Handshake Summary] SEND SSLv3 ALERT:  fatal, description = unexpected_message
    [   1] [SSL Handshake Summary] java.net.SocketException: Software caused connection abort: recv failed
    [   1] [SSL Handshake Summary] See Alert or Exception for details



  • 5.  Re: Not able to test secure Rest service using Rest Step

    Posted Sep 13, 2017 03:37 AM

    Hello Prema/Dinesh,

     

    After changes in vmoption file, I am not getting SSL exception. But getting below error now when trying to access URL.

     

    Any suggestion on this please?

     

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
    <title>403 - Forbidden: Access is denied.</title>
    <style type="text/css">
    <!--
    body{margin:0;font-size:.7em;font-family:Verdana, Arial, Helvetica, sans-serif;background:#EEEEEE;}
    fieldset{padding:0 15px 10px 15px;}
    h1{font-size:2.4em;margin:0;color:#FFF;}
    h2{font-size:1.7em;margin:0;color:#CC0000;}
    h3{font-size:1.2em;margin:10px 0 0 0;color:#000000;}
    #header{width:96%;margin:0 0 0 0;padding:6px 2% 6px 2%;font-family:"trebuchet MS", Verdana, sans-serif;color:#FFF;
    background-color:#555555;}
    #content{margin:0 0 0 2%;position:relative;}
    .content-container{background:#FFF;width:96%;margin-top:8px;padding:10px;position:relative;}
    -->
    </style>
    </head>
    <body>
    <div id="header"><h1>Server Error</h1></div>
    <div id="content">
     <div class="content-container"><fieldset>
      <h2>403 - Forbidden: Access is denied.</h2>
      <h3>You do not have permission to view this directory or page using the credentials that you supplied.</h3>
     </fieldset></div>
    </div>
    </body>
    </html>



  • 6.  Re: Not able to test secure Rest service using Rest Step

    Posted Sep 13, 2017 06:33 AM

    hello Prema,

     

    As I have raised case, but still no one contacted me till now. It is really quite urgent. Any think you can do here?

     

    Cheers..

    Shivam Garg



  • 7.  Re: Not able to test secure Rest service using Rest Step

    Posted Sep 13, 2017 10:22 AM

    Finally issue got resolved.



  • 8.  Re: Not able to test secure Rest service using Rest Step

    Posted Sep 12, 2017 01:58 PM

    Hi,

     

    Please refer the page: https://communities.ca.com/thread/241776596-how-to-add-ssl-certficate-with-rest-step

     

    this will help you.

    I am successfully doing a https REST call with certificate setup in lisa.properties and setting values in Workstation.vmoptions.

     

    Thanks,

    Dinesh Kumar