title: ssl - Error self signed certificate getting chain
body: <p>I'm learning to use Gatling to test scenario</p>
  
  <p>I've been doing with guide from documentation here
  <a href="http://gatling.io/docs/2.1.7/http/recorder.html" rel="noreferrer">http://gatling.io/docs/2.1.7/http/recorder.html</a></p>
  
  <p>Because my to-be-tested scenario includes logging in with Google Account, it is rejected due to lack of certificate. I followed guidelines to generate a certificate</p>
  
  <pre><code>openssl genrsa -out rootCA.key 2048
  openssl req -x509 -new -nodes -key rootCA.key -days 1 -out rootCA.pem
  openssl x509 -outform der -in rootCA.pem -out gatlingCA.crt
  openssl genrsa -out device.key 2048
  openssl req -new -key device.key -out device.csr
  openssl x509 -req -in device.csr -CA rootCA.pem -CAkey rootCA.key -CAcreateserial -out device.crt -days 1
  openssl pkcs12 -export -in device.crt -inkey device.key -out server.p12 -name gatling -CAfile rootCA.pem -caname gatling -chain
  keytool -importkeystore -deststorepass gatling -destkeypass gatling -destkeystore gatling-custom.jks  -srckeystore server.p12 -srcstoretype PKCS12 -srcstorepass gatling -alias gatling
  </code></pre>
  
  <p>But after this command</p>
  
  <p><code>openssl pkcs12 -export -in device.crt -inkey device.key -out server.p12 -name gatling -CAfile rootCA.pem -caname gatling -chain</code></p>
  
  <p>The terminal alerts an error: <code>Error self signed certificate getting chain</code></p>
  
  <p>What's next to do if I want to continue to create my scenario with user session, then use it to test?</p>