Skip to content

Commit

Permalink
reorg sample folder
Browse files Browse the repository at this point in the history
  • Loading branch information
user authored and user committed Dec 1, 2021
1 parent 0621a7b commit 9c09270
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 76 deletions.
64 changes: 0 additions & 64 deletions my/store.py

This file was deleted.

4 changes: 0 additions & 4 deletions my/test_windows_signer.py

This file was deleted.

6 changes: 3 additions & 3 deletions my/README.md → offload_sample/README.md
Expand Up @@ -67,7 +67,7 @@ You should see a `.pyd` file like `tls_offload_ext.cp37-win_amd64.pyd`.

# Run the sample

First navigate to `my` folder.
First navigate to `offload_sample` folder.

## generate cert/key

Expand Down Expand Up @@ -121,7 +121,7 @@ the client side cert/key.

## test the server

Open a new Git Bash terminal and change directory to `my` folder, run
Open a new Git Bash terminal and change directory to `offload_sample` folder, run

```
curl -k https://localhost:3000/foo
Expand All @@ -147,7 +147,7 @@ In the current terminal, run

```
$env:GOOGLE_API_USE_CLIENT_CERTIFICATE='true'
python tls_sample.py
python sample.py
```

You should see `Called /foo` from server side and `Call succeeded!` from curl.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions my/tls_sample.py → offload_sample/sample.py
Expand Up @@ -8,11 +8,11 @@

creds = credentials.AnonymousCredentials()
project = "sijunliu-dca-test"
ca_cert_file = os.path.join(os.getcwd(), "my", "ca_cert.pem")
rsa_cert_file = os.path.join(os.getcwd(), "my", "rsa_cert.pem")
rsa_key_file = os.path.join(os.getcwd(), "my", "rsa_key.pem")
ec_cert_file = os.path.join(os.getcwd(), "my", "ec_cert.pem")
ec_key_file = os.path.join(os.getcwd(), "my", "ec_key.pem")
ca_cert_file = os.path.join(os.getcwd(), "offload_sample", "ca_cert.pem")
rsa_cert_file = os.path.join(os.getcwd(), "offload_sample", "rsa_cert.pem")
rsa_key_file = os.path.join(os.getcwd(), "offload_sample", "rsa_key.pem")
ec_cert_file = os.path.join(os.getcwd(), "offload_sample", "ec_cert.pem")
ec_key_file = os.path.join(os.getcwd(), "offload_sample", "ec_key.pem")

import certifi
def where():
Expand Down
File renamed without changes.

0 comments on commit 9c09270

Please sign in to comment.