From 205d34cf2260c4b519ae7be831df92e33c5a13fa Mon Sep 17 00:00:00 2001 From: Sergio Arroutbi Date: Wed, 23 Aug 2023 11:07:28 +0200 Subject: [PATCH] Include correct target (tang-server-deployment) (#76) Signed-off-by: Sergio Arroutbi --- README.md | 8 ++++---- generate-signed-certificate.sh | 2 +- tang-iam-entrypoint.sh | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index c2b8fc7..f70da76 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ To generate the scripts, execute it: $ ./generate-signed-certificate.sh ************************* certname:server -sub_alternate_name:tang-backend-tang +sub_alternate_name:tang-server-deployment ************************* Certificate request self-signature ok subject=C = ES, ST = Madrid, L = Madrid, O = Red Hat, OU = org, CN = www.redhat.com @@ -101,11 +101,11 @@ Taking into account the certificates generated in section [Certificate generatio server will be executed as follows: ```bash -$ ./tang-iam-proxy -internal -dbFile /var/lib/sqlite/tang_bindings.db -port 8887 -serverCert server_bundle.pem --serverKey server.key -tangServer tang-backend-tang:8000 +$ ./tang-iam-proxy -internal -dbFile /var/lib/sqlite/tang_bindings.db -port 8887 -serverCert server_bundle.pem --serverKey server.key -tangServer tang-server-deployment:8000 ... 2023/07/28 17:15:08 Connected to DB! -2023/07/28 17:15:08 Sending requests to tang-backend-tang-8000 -2023/07/28 17:15:08 URL:[http://tang-backend-tang-8000] +2023/07/28 17:15:08 Sending requests to tang-server-deployment:8000 +2023/07/28 17:15:08 URL:[http://tang-server-deployment:8000] ... ``` diff --git a/generate-signed-certificate.sh b/generate-signed-certificate.sh index 78abc2f..399c4b5 100755 --- a/generate-signed-certificate.sh +++ b/generate-signed-certificate.sh @@ -15,7 +15,7 @@ # limitations under the License. # certname="server" -sub_alt_name="tang-backend-tang" +sub_alt_name="tang-server-deployment" function usage() { echo diff --git a/tang-iam-entrypoint.sh b/tang-iam-entrypoint.sh index b3322d3..ff5a673 100755 --- a/tang-iam-entrypoint.sh +++ b/tang-iam-entrypoint.sh @@ -23,4 +23,4 @@ cp -v /usr/bin/server_bundle.pem . cp -v /usr/bin/server.key . # Uncomment sleep to connect and check tang iam proxy # sleep 3600 -/usr/bin/tang-iam-proxy -internal -verbose -port "${PORT}" -serverCert server_bundle.pem --serverKey server.key -tangServer tang-backend-tang:8000 +/usr/bin/tang-iam-proxy -internal -verbose -port "${PORT}" -serverCert server_bundle.pem --serverKey server.key -tangServer tang-server-deployment:8000