Skip to content
Permalink
Browse files

Use a real public key in the example (#1454)

Fixes #1392
  • Loading branch information
gdbelvin committed Feb 13, 2020
1 parent 2de5509 commit 170bf2612bb8ac682f6d9b702382afa23a36191b
Showing with 11 additions and 2 deletions.
  1. +11 −2 README.md
@@ -108,14 +108,23 @@ NB A default for the Key Transparency server URL is being used here. The default
Any number of protocols may be used to prove to the server that a client owns a userID.
The sandbox server supports a fake authentication string and [OAuth](https://console.developers.google.com/apis/credentials).

Create or fetch the public key for your specific application.
```sh
openssl genpkey -algorithm X25519 -out xkey.pem
openssl pkey -in xkey.pem -pubout
-----BEGIN PUBLIC KEY-----
MCowBQYDK2VuAyEAtCAsIMDyVUUooA5yhgRefcEr7edVOmyNCUaN1LCYl3s=
-----END PUBLIC KEY-----
```

```sh
keytransparency-client post user@domain.com \
--kt-url sandbox.keytransparency.dev:443 \
--fake-auth-userid user@domain.com \
--password=${PASSWORD} \
--verboase \
--verbose \
--logtostderr \
--data='dGVzdA==' #Base64
--data='MCowBQYDK2VuAyEAtCAsIMDyVUUooA5yhgRefcEr7edVOmyNCUaN1LCYl3s=' #Your public key in base64
```

#### Get and verify a public key

0 comments on commit 170bf26

Please sign in to comment.
You can’t perform that action at this time.