artillery-plugin-http-ssl
v0.0.2
Published
load contents of key files at given paths for use in artillery TLS connections
Downloads
69
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:
npm install -g artillery
npm install -g artillery-plugin-http-ssl
- 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
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.