How to Apply an SSL Certificate to Vultr Load Balancer

Updated on 07 April, 2025

Applying an SSL Certificate to your Vultr Load Balancer enhances the security of your traffic by encrypting data transmitted between clients and your Load Balancer. By adding a private key, certificate, and certificate chain, you can ensure secure communications and improve trustworthiness for your users.

Follow this guide to apply an SSL certificate to your Vultr Load Balancer using the Vultr Customer Portal, API, or CLI.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  1. Navigate to Products and click Load Balancers.
  2. Click your target Load Balancer to open its management page.
  3. Click Configuration.
  4. Click SSL Certificate in the left navigation menu.
  5. Add Private Key.
  6. Add Certificate.
  7. Add Certificate Chain.
  8. Click Save changes.
  1. Send a GET request to the List Load Balancers endpoint and note the target Load Balancer's ID.

    console
    $ curl "https://api.vultr.com/v2/load-balancers" \
        -X GET \
        -H "Authorization: Bearer ${VULTR_API_KEY}"
    
  2. Send a PATCH request to the Update Load Balancer endpoint to apply an SSL certificate to the target Load Balancer.

    console
    $ curl "https://api.vultr.com/v2/load-balancers/{load-balancer-id}" \
        -X PATCH \
        -H "Authorization: Bearer ${VULTR_API_KEY}" \
        -H "Content-Type: application/json" \
        --data '{
            "ssl": {
                "private_key": "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY_HERE\n-----END PRIVATE KEY-----",
                "certificate": "-----BEGIN CERTIFICATE-----\nYOUR_CERTIFICATE_HERE\n-----END CERTIFICATE-----",
                "chain": "-----BEGIN CERTIFICATE-----\nYOUR_CHAIN_CERTIFICATE_HERE\n-----END CERTIFICATE-----"
            }
        }'
    
  1. List all available instances and note the target Load Balancer's ID.

    console
    $ vultr-cli load-balancer list
    
  2. Apply SSL certificate to target Load Balancer.

    console
    $ vultr-cli load-balancer update <load-balancer-id> \
        --private-key "-----BEGIN PRIVATE KEY-----\nYOUR_PRIVATE_KEY_HERE\n-----END PRIVATE KEY-----" \
        --certificate "-----BEGIN CERTIFICATE-----\nYOUR_CERTIFICATE_HERE\n-----END CERTIFICATE-----" \
        --certificate-chain "-----BEGIN CERTIFICATE-----\nYOUR_CHAIN_CERTIFICATE_HERE\n-----END CERTIFICATE-----"
    

Comments

No comments yet.