From b18e890e1ca53323ef8608ff2f6f880f04696ece Mon Sep 17 00:00:00 2001 From: Diogo Monica Date: Mon, 12 Oct 2015 18:18:43 -0700 Subject: [PATCH] Changing the default config to point to notary-server Signed-off-by: Diogo Monica --- README.md | 6 ++++-- cmd/notary/config.json | 2 +- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index dbf4469bdc..54c8b3b68a 100644 --- a/README.md +++ b/README.md @@ -42,7 +42,8 @@ Prerequisites: - [docker and docker-compose](http://docs.docker.com/compose/install/) - [Notary server configuration](#configure-notary-server) -As setup, lets build notary and then start up a local notary-server. +As setup, lets build notary and then start up a local notary-server (don't forget +to add `127.0.0.1 notary-server` to your `/etc/hosts`). ```sh make binaries @@ -52,6 +53,7 @@ docker-compose up -d Note: In order to have notary use the local notary server and development root CA we can load the local development configuration by appending `-c cmd/notary/config.json` to every command. If you would rather not have to use `-c` on every command, copy `cmd/notary/config.json and cmd/notary/root-ca.crt` to `~/.notary`. + First, lets initiate a notary collection called `example.com/scripts` ```sh @@ -118,7 +120,7 @@ either `curl` or `openssl`, you will have to use the root CA file in `fixtures/r OpenSSL example: -`openssl s_client -connect localhost:4443 -CAfile fixtures/root-ca.crt` +`openssl s_client -connect notary-server:4443 -CAfile fixtures/root-ca.crt` ## Compiling Notary Server diff --git a/cmd/notary/config.json b/cmd/notary/config.json index f1af232571..6b9f1bf0cf 100644 --- a/cmd/notary/config.json +++ b/cmd/notary/config.json @@ -1,6 +1,6 @@ { "remote_server": { - "url": "https://localhost:4443", + "url": "https://notary-server:4443", "root_ca": "root-ca.crt" } }