Skip to content

Commit 28c9fcb

Browse files
committed
Remove "m" in the TLS demo. Kine does not support client certificate validation k3s-io/kine#272 (comment)
1 parent 091b490 commit 28c9fcb

6 files changed

Lines changed: 3 additions & 91 deletions

File tree

demo/tls/README.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,11 @@
22

33
This demo illustrates a setup with mutual TLS (mTLS) connections between different components.
44

5-
K3s, acting as a client, connects to F8N. F8N mimics an etcd server.
6-
Simultaneously, F8N acts as a client and connects to FoundationDB (FDB).
7-
Both of these connections are secured using mTLS.
5+
K3s, acting as a client, connects to F8N over HTTPs. F8N mimics an etcd server.
6+
Simultaneously, F8N acts as a client and connects to FoundationDB (FDB) via the FDB protocol with mTLS.
87

98
```ascii
10-
+-----+ mTLS +-------------+ mTLS +-----+
9+
+-----+ TLS +-------------+ mTLS +-----+
1110
| | | | | |
1211
| K3S | <------------> | F8N | <------------> | FDB |
1312
| | | | | |

demo/tls/docker-compose.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,3 @@ services:
7070
environment:
7171
K3S_DATASTORE_ENDPOINT: "https://f8n-demo:2379"
7272
K3S_DATASTORE_CAFILE: "/opt/etcd/tls/ca-certificate.pem"
73-
K3S_DATASTORE_CERTFILE: "/opt/etcd/tls/client-certificate.pem"
74-
K3S_DATASTORE_KEYFILE: "/opt/etcd/tls/client-private-key.pem"

demo/tls/etcd_pki/client-certificate.pem

Lines changed: 0 additions & 24 deletions
This file was deleted.

demo/tls/etcd_pki/client-private-key.pem

Lines changed: 0 additions & 28 deletions
This file was deleted.

demo/tls/etcd_pki/gen_certs.sh

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -23,20 +23,3 @@ openssl x509 -req -in server.csr \
2323

2424
rm server.csr
2525
### End Server ###
26-
27-
28-
### Client ###
29-
# Client private key:
30-
openssl genpkey -algorithm RSA -out client-private-key.pem
31-
32-
# Client certificate signing request (CSR):
33-
openssl req -new -key client-private-key.pem -out client.csr -config openssl-client.cnf -subj "/C=US/ST=California/L=San Francisco/O=My Organization/OU=IT/CN=example.com"
34-
35-
# Client certificate signed by the CA:
36-
openssl x509 -req -in client.csr \
37-
-CA ca-certificate.pem -CAkey ca-private-key.pem \
38-
-out client-certificate.pem -days 3650 -sha256 \
39-
-copy_extensions copyall
40-
41-
rm client.csr
42-
### End Client ###

demo/tls/etcd_pki/openssl-client.cnf

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)