Certificate

A certificate is used to add in SSL termination to load balancers.

Resource Fields

Writeable Fields

Field Type Create Update Default Notes
cert string Yes Yes -  
certChain string Optional Yes -  
description string Optional Yes -  
key string Yes Yes -  
name string Yes Yes -  

Read Only Fields

Field Type Notes
CN string  
algorithm string  
certFingerprint string  
expiresAt string  
id int The unique identifier for the certificate
issuedAt string  
issuer string  
keySize int  
serialNumber string  
subjectAlternativeNames array[string]  
version string  


Please read more about the common resource fields. These fields are read only and applicable to almost every resource. We have segregated them from the list above.

Operations

CreatePOST: /v2-beta/projects/${PROJECT_ID}/certificates

curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X POST \
-H 'Content-Type: application/json' \
-d '{
	"cert": "string",
	"certChain": "string",
	"description": "string",
	"key": "string",
	"name": "string"
}' 'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/certificates'

DeleteDELETE: /v2-beta/projects/${PROJECT_ID}/certificates/${ID}

curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X DELETE \
'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/certificates/${ID}'

UpdatePUT: /v2-beta/projects/${PROJECT_ID}/certificates/${ID}

curl -u "${RANCHER_ACCESS_KEY}:${RANCHER_SECRET_KEY}" \
-X PUT \
-H 'Content-Type: application/json' \
-d '{
	"cert": "string",
	"certChain": "string",
	"description": "string",
	"key": "string",
	"name": "string"
}' 'http://${RANCHER_URL}:8080/v2-beta/projects/${PROJECT_ID}/certificates/${ID}'