Using TLS certificates for applications accessing RGW

Before you begin

A running Fusion Data Foundation cluster.

About this task

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.

Procedure

  • For internal RGW server
    Get the TLS certificate and key from the kubernetes secret:
    oc get secrets/<secret_name> --template={{.data.tls.crt}} | base64 -d
    
    oc get secrets/<secret_name> --template={{.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 TLS certificate from the kubernetes secret:
    oc get secrets/<secret_name> --template={{.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 is cert.