HTTPs Call Using Load Balancer
This sample illustrates how to make an HTTPs call using a load
balancer.
This will not run on your machine unless you do the following:
- In your golang root (try /usr/local/go) locate src/crypto/tls/generate_cert.go,
and build it.
- Use generate_cert to generate a cacert for this example:
generate_cert -ca -host `hostname`
- Copy the generated cert.pem into this directory, and insert the contents
of cert.pem and key.pem into inposter-https.json.
To run the sample, start (or restart) mountebank, run sample-setup.sh
,
then
env XAVI_KVSTORE_URL=file:///`pwd`/config go run lbsample.go