cd example
docker run -d --name pollendina_ca -p 33004:33004 -v "$PWD":/opt/pollendina/ pollendina/pollendina
cp cacert.pem client/cacert.pem cp cacert.pem server/cacert.pem
cd server
docker build -t server .
CA_IP=192.168.59.103:33004 POLLENDINA_TOKEN=$(openssl rand -hex 32) COMMON_NAME="hw"
curl --cacert "cacert.pem" --data "token=${POLLENDINA_TOKEN}&cn=${COMMON_NAME}" http://$CA_IP/v1/authorize docker run --name nginx-server -e POLLENDINA_TOKEN="$POLLENDINA_TOKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t server /bin/bash
cd client
docker build -t client .
CA_IP=192.168.59.103:33004 POLLENDINA_TOKEN=$(openssl rand -hex 32) COMMON_NAME="client"
curl --cacert "cacert.pem" --data "token=${POLLENDINA_TOKEN}&cn=${COMMON_NAME}" http://$CA_IP/v1/authorize docker run -e POLLENDINA_TOKEN="$POLLENDINA_TOKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t --link nginx-server:/hw client /bin/bash
curl -v -s -k --key /certs/id.key --cert /certs/id.crt https://hw
curl -v -debug -s -k --key /certs/id.key --cert /certs/id.crt -X GET https://hw
docker run -e POLLENDINA_TOKEN="$POLLENDINA_TOKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t --link backstabbing_franklin:/hw customer /bin/bash
docker run -e POLLENDINA_TOKEN="$POLLENDINA_TOKEN" -e COMMON_NAME="$COMMON_NAME" -e CA_IP="$CA_IP" -i -t server /bin/bash