Skip to content

Commit

Permalink
Include correct target (tang-server-deployment) (#76)
Browse files Browse the repository at this point in the history
Signed-off-by: Sergio Arroutbi <sarroutb@redhat.com>
  • Loading branch information
sarroutbi committed Aug 23, 2023
1 parent 1c78148 commit 205d34c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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]
...
```

Expand Down
2 changes: 1 addition & 1 deletion generate-signed-certificate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion tang-iam-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 205d34c

Please sign in to comment.