From c6d32864f9bb24aa64a031fcb4ff0e66371a8f84 Mon Sep 17 00:00:00 2001 From: nborgers Date: Wed, 9 Aug 2023 20:08:20 +0000 Subject: [PATCH 1/3] change localhost to moroz.local --- README.md | 4 +++- tools/dev/certificate/create | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index a19ad94..fbdbe24 100644 --- a/README.md +++ b/README.md @@ -116,7 +116,7 @@ Generate a self-signed certificate which will be used by Santa clients and the s Add the Santa CN to your hosts file. ``` -sudo echo "127.0.0.1 santa" >> /etc/hosts +sudo echo "127.0.0.1 moroz.local" >> /etc/hosts ``` Add the self-signed cert to your system roots. @@ -131,6 +131,8 @@ The latest version of Santa is available on the GitHub repo page: https://github ## Configure Santa: You will need to provide the `SyncBaseURL` settings. See the [Santa repo](https://github.com/google/santa/blob/01df4623c7c534568ca3d310129455ff71cc3eef/Docs/deployment/configuration.md#important) for a complete guide on all the client configuration options. +A likely value for local testing as in the Quickstart will be: `https://moroz.local:8934/v1/santa/` + ## Start moroz: Assumes you have the `./server.crt` and `./server.key` files. diff --git a/tools/dev/certificate/create b/tools/dev/certificate/create index 15acce8..e141418 100755 --- a/tools/dev/certificate/create +++ b/tools/dev/certificate/create @@ -2,6 +2,8 @@ openssl genrsa -out server.key 2048 openssl rsa -in server.key -out server.key -openssl req -sha256 -new -key server.key -out server.csr -subj "/CN=santa" -openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt +openssl req -sha256 -new -key server.key -out server.csr \ + -subj "/CN=moroz.local" \ + -addext "subjectAltName = DNS:moroz.local" +openssl x509 -req -sha256 -days 365 -in server.csr -signkey server.key -out server.crt -copy_extensions=copyall rm -f server.csr From 18747b75175948f6a978d51e3b70867fe448bb1f Mon Sep 17 00:00:00 2001 From: Nick Borgers <73143201+NickBorgersOnLowSecurityNode@users.noreply.github.com> Date: Wed, 9 Aug 2023 16:12:55 -0400 Subject: [PATCH 2/3] 8080 more likely --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index fbdbe24..2a96a49 100644 --- a/README.md +++ b/README.md @@ -131,7 +131,7 @@ The latest version of Santa is available on the GitHub repo page: https://github ## Configure Santa: You will need to provide the `SyncBaseURL` settings. See the [Santa repo](https://github.com/google/santa/blob/01df4623c7c534568ca3d310129455ff71cc3eef/Docs/deployment/configuration.md#important) for a complete guide on all the client configuration options. -A likely value for local testing as in the Quickstart will be: `https://moroz.local:8934/v1/santa/` +A likely value for local testing as in the Quickstart will be: `https://moroz.local:8080/v1/santa/` ## Start moroz: Assumes you have the `./server.crt` and `./server.key` files. From 6cdf6bea5b5aff1eb1d3c75865b7043512592f7c Mon Sep 17 00:00:00 2001 From: Nick Borgers <73143201+NickBorgersOnLowSecurityNode@users.noreply.github.com> Date: Thu, 10 Aug 2023 16:57:03 -0400 Subject: [PATCH 3/3] fix reference to santa in main.go --- cmd/moroz/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/moroz/main.go b/cmd/moroz/main.go index e17d08f..acab934 100644 --- a/cmd/moroz/main.go +++ b/cmd/moroz/main.go @@ -29,7 +29,7 @@ by using the commands below: Add the santa hostname to your hosts file. - sudo echo "127.0.0.1 santa" >> /etc/hosts + sudo echo "127.0.0.1 moroz.local" >> /etc/hosts And then, add the cert to roots.