Skip to content

Commit

Permalink
Merge branch 'master' into helm_docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ldemailly authored Jan 25, 2018
2 parents 0114aea + dc3511e commit 1c45893
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions _docs/tasks/security/plugin-ca-cert.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,19 +35,11 @@ which should include the certificates of all the intermediate CAs between the wo
In this example, it only contains the Istio CA certificate, so `cert-chain.pem` is the same as `ca-cert.pem`.
Note that if your `ca-cert.pem` is the same as `root-cert.pem`, you can have an empty `cert-chain.pem` file.

Download the example files:
```bash
wget -P /tmp https://raw.githubusercontent.com/istio/istio/master/security/samples/plugin_ca_certs/ca-cert.pem
wget -P /tmp https://raw.githubusercontent.com/istio/istio/master/security/samples/plugin_ca_certs/ca-key.pem
wget -P /tmp https://raw.githubusercontent.com/istio/istio/master/security/samples/plugin_ca_certs/root-cert.pem
wget -P /tmp https://raw.githubusercontent.com/istio/istio/master/security/samples/plugin_ca_certs/cert-chain.pem
```

The following steps enable plugging in the certificate and key into the Istio CA:
1. Create a secret `cacert` including all the input files `ca-cert.pem`, `ca-key.pem`, `root-cert.pem` and `cert-chain.pem`:
```bash
kubectl create secret generic cacerts -n istio-system --from-file=/tmp/ca-cert.pem --from-file=/tmp/ca-key.pem \
--from-file=/tmp/root-cert.pem --from-file=/tmp/cert-chain.pem
kubectl create secret generic cacerts -n istio-system --from-file=install/kubernetes/ca-cert.pem --from-file=install/kubernetes/ca-key.pem \
--from-file=install/kubernetes/root-cert.pem --from-file=install/kubernetes/cert-chain.pem
```

1. Redeploy the Istio CA, which reads the certificates and key from the secret-mount files:
Expand Down

0 comments on commit 1c45893

Please sign in to comment.