Using REST for Encrypted Access

    +
    Use REST to retrieve the self-signed certificate from the cluster.

    GET /pools/default/certificate

    Description

    The GET filepath /pools/default/certificate REST API HTTP method and URI retrieves the self-signed certificate from the cluster.

    Syntax with curl for retrieving the certificate:

    curl -X GET  -u adminName:adminPassword
    http://localHost:Port/pools/default/certificate > ./<certificate_name>

    Examples

    The following examples use curl and wget to retrieve the certificate:

    curl http://10.5.2.54:8091/pools/default/certificate > clusterCertificate
    wget http://10.5.2.54:8091/pools/default/certificate -O clusterCertificate

    The following examples use curl and wget with the certificate to retrieve cluster information over an encrypted connection. The port used is the encrypted REST port 18091.

    curl --cacert clusterCertificate https://10.5.2.54:18091/pools/default
    wget --ca-certificate clusterCertificate  https://10.5.2.54:18091/pools/default -O output