Skip to content

Commit

Permalink
Update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
charith-elastic committed Sep 19, 2019
1 parent 0135153 commit 021cd92
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/accessing-services.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -144,12 +144,13 @@ You can bring your own certificate to configure TLS to ensure that communication

Create a Kubernetes secret with:

- `tls.crt`: the certificate (or a chain).
- `ca.crt`: CA certificate (optional if `tls.crt` was issued by a well-known CA)
- `tls.crt`: the certificate.
- `tls.key`: the private key to the first certificate in the certificate chain.

[source,sh]
----
kubectl create secret tls my-cert --cert tls.crt --key tls.key
kubectl create secret generic my-cert --from-file=ca.crt=tls.crt --from-file=tls.crt=tls.crt --from-file=tls.key=tls.key
----

Then you just have to reference the secret name in the `http.tls.certificate` section of the resource manifest.
Expand Down

0 comments on commit 021cd92

Please sign in to comment.