Skip to content

SSL Deployment

An SSL certificate is a digital certificate that authenticates a website's identity and enables an encrypted connection. SSL stands for Secure Sockets Layer, a security protocol that creates an encrypted link between a web server and a web browser.

CloudStick offers two options to deploy SSL Certificate for your domain, first one is Let's Encrypt Free SSL and the second one is Custom SSL solution.

Request Let's Encrypt SSL

HTTP REQUEST

POST https://api.cloudstick.io/api/v1/letsencrypt/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY}

REQUEST

curl --request POST \
  --url 'https://api.cloudstick.io/api/v1/letsencrypt/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY}' \
  --header 'Content-Type: application/json' \
  --data '  
  {
  "server_id": 5,
  "web_stack_id": 6,
    "domains": ["demo.cloudstick.me"],
  "enable_hsts": true,
    "tls_version": "TLSv1.3",
  "cipher_suite": "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4",
    "ssl_provider":"letsencrypt"
    }'

Response

{
  "server_id": 5,
  "server_uuid": "MDNhNTFmODQtMjA4My00ZTZiLWE2ZjEtMDU1NjIyMjdmZTUw",
  "web_stack_id": 6,
  "created_at": "0001-01-01T00:00:00Z",
  "expires_at": "2021-12-31T13:33:45Z",
  "domains": [
    "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hVjBUOVZ1RwpXQ0xLVFZYa2NHZHR3bGZGUmpsQno0cFlnMWh0bWY1WDZEWU84QTRqcXYySWw5RGpYQTZVU2JXMUZ6WFNMcjlPCmhlOFk0SVdTNndZN2JDa2pDV0RjUlFKTUVoZzc2ZnNPM3R4RStGaVlydXE5UlVXaGlGMW15djRRNlcrQ3lCRkMKRGZ2cDdPT0dBTjZkRU9NNCtxUjlzZGpvU1lLRUJwc3I2R3RQQVF3NGR5NzUzZWM1Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K",
  "ssl_provider": "letsencrypt",
  "brotli_enabled": false,
  "tls_version": "TLSv1.2",
  "cipher_suite": "EECDH+AESGCM:EDH+AESGCM:ECDHE-RSA-AES128-GCM-SHA256:AES256+EECDH:DHE-RSA-AES128-GCM-SHA256:AES256+EDH:ECDHE-RSA-AES256-GCM-SHA384:DHE-RSA-AES256-GCM-SHA384:ECDHE-RSA-AES256-SHA384:ECDHE-RSA-AES128-SHA256:ECDHE-RSA-AES256-SHA:ECDHE-RSA-AES128-SHA:DHE-RSA-AES256-SHA256:DHE-RSA-AES128-SHA256:DHE-RSA-AES256-SHA:DHE-RSA-AES128-SHA:ECDHE-RSA-DES-CBC3-SHA:EDH-RSA-DES-CBC3-SHA:AES256-GCM-SHA384:AES128-GCM-SHA256:AES256-SHA256:AES128-SHA256:AES256-SHA:AES128-SHA:DES-CBC3-SHA:HIGH:!aNULL:!eNULL:!EXPORT:!DES:!MD5:!PSK:!RC4",
  "enable_hsts": true,
  "is_sub_domain": {
    "Bool": false,
    "Valid": false
  },
  "cert_url": "https://acme-v02.api.letsencrypt.org/acme/cert/049c6371909d1bcf30ff8a28689f5f63a8c0",
  "is_renewal_failed": false,
  "num_renewals_failed": 0
}   

Renew SSL Certificate

HTTP Request

PATCH https://api.cloudstick.io/api/v1/letsencrypt/{ssl_id}/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY}

Request

curl --request PATCH \
  --url 'https://api.cloudstick.io/api/v1/letsencrypt/{ssl_id}/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY}'

Update SSL Certificate

HTTP Requst

PATCH https://api.cloudstick.io/api/v1/sslcerts/{ssl_id}/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY}

Request

curl --request PATCH \
  --url 'https://api.cloudstick.io/api/v1/sslcerts/{ssl_id}/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY} \
  --header 'Content-Type: application/json' \
  --cookie phpMyAdmin=lak7svtdtk1r16gaansdv96k7f \
  --data '{
     "tls_version": "TLSv1.1 TLSv1.2"
}'

Delete SSL Certificate

HTTP REQUEST

DELETE https://api.cloudstick.io/api/v1/sslcerts/{ssl_id}/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY}

REQUEST

curl --request DELETE \
  --url 'https://api.cloudstick.io/api/v1/sslcerts/{ssl_id}/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY}' 

List SSL Certs for a given server

HTTP REQUEST

GET https://api.cloudstick.io/api/v1/sslcerts/{ssl_id}/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY}

REQUEST

curl --request GET \
  --url 'https://api.cloudstick.io/api/v1/sslcerts/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY}' 

List SSL Certs for a given web app

HTTP REQUEST

GET https://api.cloudstick.io/api/v1/sslcerts/webstacks/{web_app_id}/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY}

REQUEST

curl --request GET \
  --url 'https://api.cloudstick.io/api/v1/sslcerts/webstacks/{web_app_id}/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY}'   

Get SSL Certs by id

HTTP REQUEST

GET https://api.cloudstick.io/api/v1/sslcerts/{ssl_id}/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY}

REQUEST

curl --request GET \
  --url 'https://api.cloudstick.io/api/v1/sslcerts/{ssl_id}/servers/{server_id}/users/{user_id}?api_key={API_KEY}&secret_key={SECRET_KEY}'