JSPM

artillery-plugin-http-ssl

0.0.2
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13
  • Score
    100M100P100Q64765F
  • License Apache-2.0

load contents of key files at given paths for use in artillery TLS connections

Package Exports

  • artillery-plugin-http-ssl

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (artillery-plugin-http-ssl) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

artillery-plugin-http-ssl

An artillery.io plugin for loading TLS certificates into memory for use in an artillery script. This allows using artillery aganist services requiring mutual authentication for successful socket connection.

To use:

  1. npm install -g artillery
  2. npm install -g artillery-plugin-http-ssl
  3. add the ssl plugin to your Artillery script (note that example configuration of the TLS attributes is additionally shown):
# hello.yml
config:
  tls: # see https://github.com/request/request#tlsssl-protocol # these are all optional according to your needs
    ca: <path-to-ca-file>
    cert: <path-to-cert-file>
    key: <path-path-to-key-file>
    passphrase: <phrase>
  plugins:
    http-ssl: {} # empty object
  1. artillery run hello.yml

This will cause the files located at the given paths (all attributes are optional) to be synchronously loaded and used to open the connection to your remote host as defined at https://github.com/request/request#tlsssl-protocol.