Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Certificates are not getting set/sent correctly #218

Closed
subbu05 opened this issue Nov 17, 2016 · 1 comment
Closed

Certificates are not getting set/sent correctly #218

subbu05 opened this issue Nov 17, 2016 · 1 comment
Milestone

Comments

@subbu05
Copy link

subbu05 commented Nov 17, 2016

Below is the code I used and always ac.pem is getting used for second request.
After first request I have configured to use tc.pem but still uses ac.pem.

When I run first request goes fine, for the second request I see 403 forbidden due to cert issue.

OS Centos7 64 bit
Tsung version Tsung version 1.6.0
erl -v
Erlang R16B03-1 (erts-5.10.4) [source] [64-bit] [async-threads:10] [hipe] [kernel-poll:false]
Eshell V5.10.4

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE tsung SYSTEM "/usr/share/tsung/tsung-1.0.dtd" []>
<tsung loglevel="debug" dumptraffic="true">

  <clients>
    <client host="localhost" cpu="1"   use_controller_vm="true"/>
  </clients>

<servers>
 <server host="hero.com" port="443" type="ssl"/>
  </servers>

  <load>
    <arrivalphase phase="1" duration="120" unit="second">
      <users arrivalrate="0.1" unit="second"/>
    </arrivalphase>
  </load>



  <sessions>

 <session name="es_load" weight="1" type="ts_http">

     <set_option name="certificate">
    <certificate keyfile="certs/ac.key" certfile="certs/ac.pem"/>
  </set_option>

<transaction name="portals">
      <request >
      <dyn_variable name="id" jsonpath="Resources[0].id"/>
      <http url="/v2/Portals" method="GET" content_type="application/json"       >
      <http_header  name="HOST" value="hero.com"/>
      <http_header name="Accept" value="application/json"/>
      </http>
      </request>
</transaction>


 <set_option name="certificate">
    <certificate keyfile="certs/tc.key" certfile="certs/tc.pem"/>
  </set_option>

<transaction name="s2">
<request subst="true">
<http url="/v2/jwt/access" method="POST" content_type="application/json" contents="{&quot;Names&quot;:{&quot;Id&quot;:&quot;%%_id%%&quot;}, &quot;expiry&quot;:6000}">
      <http_header  name="HOST" value="hero.com"/>
      </http>
      </request>
</transaction>



    </session>



  </sessions>
</tsung>
@nniclausse
Copy link
Contributor

yes, the connection is not reopen when the second certificate is set, so the first one is still used, it's a bug.

@nniclausse nniclausse added this to the v1.6.1 milestone Aug 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants