A self-signed certificate (SSC) provides security for an internal site or serves as a temporary measure while a fully authenticated certificate is obtained from a CA. Installing a certificate replaces the existing certificate. After a certificate is replaced, it cannot be reinstalled. Restart Query Service to load the new certificate.
Run the following sample request to create a self-signed certificate:
curl -k -X POST 'https://<QS_HOSTNAME>:1443/certificates/selfsigned' \
--header 'Authorization: Basic <ADMIN_TOKEN>' \
--header 'Content-Type: text/plain' \
--data-raw '{
"expiration": 12,
"commonName": "<QS_HOSTNAME>",
"organizationalUnit": "Teradata Corporation",
"organization": "UDA",
"city": "San Diego",
"state": "California",
"country": "US",
"email": "john.doe@teradata.com",
"san1": "TD",
"san2": "TD Inc",
"san3": "Teradata"
}'
Where:
| Parameter | Description |
|---|---|
| commonName | Domain name which is <QS_HOSTNAME> |
| organizationalUnit | Business unit |
| organization | Company name |
| city | City or locality of the organization |
| state | State or province of the organization |
| country | Country code where the organization is located |
| [Optional] Email address of the requester | |
| expiration | Select an expiration period |