|
1 |
| -**TODO** write me |
| 1 | +# Sample to create certificates and keys for the operator |
| 2 | + |
| 3 | +When a user enables the operator's external REST api (by setting |
| 4 | +`externalRestEnabled` to `true` when installing the operator helm chart), the user needs |
| 5 | +to provide the certificate and private key for api's SSL identity (by setting |
| 6 | +`externalOperatorCert` and `externalOperatorKey` to the base64 encoded PEM of the cert and |
| 7 | +key when installing the operator helm chart). |
| 8 | + |
| 9 | +This sample script generates a self-signed certificate and private key that can be used |
| 10 | +for the operator's external REST api when experimenting with the operator. They should |
| 11 | +not be used in a production environment. |
| 12 | + |
| 13 | +The syntax of the script is: |
| 14 | +``` |
| 15 | +$ kubernetes/samples/scripts/generate-external-rest-identity.sh <subject alternative names> |
| 16 | +``` |
| 17 | + |
| 18 | +Where `<subject alternative names>` lists the subject alternative names to put into the generated |
| 19 | +self-signed certificate for the external WebLogic Operator REST https interface. Each must be prefaced |
| 20 | +by `DNS:` (for a name) or `IP:` (for an address), for example: |
| 21 | +``` |
| 22 | +DNS:myhost,DNS:localhost,IP:127.0.0.1 |
| 23 | +``` |
| 24 | + |
| 25 | +You should include the addresses of all masters and load balancers in this list. The certificate |
| 26 | +cannot be conveniently changed after installation of the operator. |
| 27 | + |
| 28 | +The script prints out the base64 encoded pem of the generated certificate and private key |
| 29 | +in the same format that the operator helm chart's `values.yaml` requires. |
| 30 | + |
| 31 | +Example usage: |
| 32 | +``` |
| 33 | +$ generate-external-rest-identity.sh IP:127.0.0.1 > my_values.yaml |
| 34 | +$ echo "externalRestEnabled: true" >> my_values.yaml |
| 35 | + ... |
| 36 | +$ helm install kubernetes/charts/weblogic-operator --name my_operator --namespace my_operator-ns --values my_values.yaml --wait |
| 37 | +``` |
0 commit comments