Skip to content
This repository has been archived by the owner on Jan 2, 2020. It is now read-only.

Running user agent against a local LEAP provider

Tulio Casagrande edited this page May 15, 2017 · 3 revisions

Once you've setup the pixelated-user-agent and a local LEAP provider, you'll need to setup local certificates.

Steps for local certificate setup

Run leap compile hosts in the base directory of the LEAP provider (e.g. vagrant) to get an output that looks like -

## environment 'local'
10.5.5.2 local1 local1.pixelated-project.local local1.pixelated-project.local pixelated-project.local api.pixelated-project.local nicknym.pixelated-project.local

This needs to be added to the /etc/hosts file on the user-agent vagrant machine so that the local certificate of the provider is validated.

You can get the certificate for this local provider from the following path -

files/ca/ca.crt

This needs to be copied to the user-agent directory so that its accessible in the `/vagrant' directory inside the user-agent vagrant box.

Now you can use the following command to run the local user-agent code against the local vagrant provider -

pixelated-user-agent --host 0.0.0.0 --multi-user --provider=pixelated-project.local -lc /vagrant/ca.crt