Skip to content

Commit d7ee6d1

Browse files
authored
fix: Update readme for TLS (#115)
* fix: update readme
1 parent 1e06a55 commit d7ee6d1

File tree

1 file changed

+8
-3
lines changed
  • new_samples/client_samples/helloworld_tls

1 file changed

+8
-3
lines changed

new_samples/client_samples/helloworld_tls/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,16 +27,22 @@ https://github.com/cadence-workflow/cadence/blob/e1267de12f8bc670fc84fab456d3495
2727

2828
### Step 1: Download Certificates
2929
Download certificates from config/credentials of cadence server and place them in below folder
30+
Or follow below steps
3031

3132
```bash
32-
new_samples/client_samples/helloworld_tls/credentials
33+
mkdir -p new_samples/client_samples/helloworld_tls/credentials
34+
35+
$ curl -s -O https://raw.githubusercontent.com/cadence-workflow/cadence/master/config/credentials/client.crt
36+
$ curl -s -O https://raw.githubusercontent.com/cadence-workflow/cadence/master/config/credentials/client.key
37+
$ curl -s -O https://raw.githubusercontent.com/cadence-workflow/cadence/master/config/credentials/keytest.crt
38+
3339
```
3440

3541
### Step 2: Register the Domain
3642
Before running workflows, you must register the "default" domain:
3743

3844
```bash
39-
cd new_samples/client_samples/helloworld_tls
45+
cd ..
4046
go run register_domain.go
4147
```
4248

@@ -53,7 +59,6 @@ Domain already exists {"domain": "default"}
5359
### Step 3: Run the Sample
5460
In another terminal:
5561
```bash
56-
cd new_samples/client_samples/helloworld_tls
5762
go run hello_world_tls.go
5863
```
5964

0 commit comments

Comments
 (0)