How to Apply an SSL Certificate to Vultr Load Balancer

Updated on 11 September, 2025

A guide for installing SSL certificates on Vultr Load Balancers to enable secure HTTPS connections


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, CLI, or Terraform.

  • Vultr Customer Portal
  • Vultr API
  • Vultr CLI
  • Terraform
  1. Navigate to Products and click Load Balancers.
  2. Click your target Load Balancer to open its management page.
  3. Scroll to SSL, click the pencil icon, and choose Auto SSL.
  4. Paste the Private Key, Certificate, and Certificate Chain.
  5. 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-----"
    
  1. Open your Terraform configuration file for the existing Load Balancer.

  2. Add the ssl block with your certificate details.

    terraform
    resource "vultr_load_balancer" "lb" {
        # ...existing fields (region, label, forwarding_rules, health_check, etc.)
    
        ssl {
            private_key = file("path/to/privkey.pem")
            certificate = file("path/to/cert.pem")
            chain       = file("path/to/chain.pem")
        }
    }
    
  3. Apply the configuration and observe the following output:

    Apply complete! Resources: 0 added, 1 changed, 0 destroyed.

Comments

No comments yet.