Chapter 13. Using TLS certificates for applications accessing RGW
Most of the S3 applications require TLS certificate in the forms such as an option included in the Deployment configuration file, passed as a file in the request, or stored in /etc/pki
paths.
TLS certificates for RADOS Object Gateway (RGW) are stored as Kubernetes secret and you need to fetch the details from the secret.
Prerequisites
A running OpenShift Data Foundation cluster.
Procedure
For internal RGW server
Get the TLS certificate and key from the kubernetes secret:
$ oc get secrets/<secret_name> -o jsonpath='{.data..tls\.crt}' | base64 -d $ oc get secrets/<secret_name> -o jsonpath='{.data..tls\.key}' | base64 -d
- <secret_name>
-
The default kubernetes secret name is
<objectstore_name>-cos-ceph-rgw-tls-cert
. Specify the name of the object store.
For external RGW server
Get the the TLS certificate from the kubernetes secret:
$ oc get secrets/<secret_name> -o jsonpath='{.data.cert}' | base64 -d
- <secret_name>
-
The default kubernetes secret name is
ceph-rgw-tls-cert
and it is an opaque type of secret. The key value for storing the TLS certificates iscert
.