Yandex Cloud
Search
Discuss with expertTry it for free
  • Customer Stories
  • Documentation
  • Blog
  • All Services
    • Cloud Interconnect
    • Cloud Backup
    • Cloud Registry
    • Yandex AI Studio
    • Compute Cloud
    • Object Storage
    • Managed Service for Kubernetes®
    • Yandex BareMetal
    • Smart Web Security
    • Security Deck
    • Managed Service for PostgreSQL
    • Managed Service for ClickHouse®
    • Monium
    • Cloud CDN
    • Network Load Balancer
    • Virtual Private Cloud
    • Cloud DNS
    • Application Load Balancer
    • Yandex Cloud Video
    • Stackland
    • Yandex Cloud Router
    • Yandex Managed Service for Trino
    • Managed Service for MySQL®
    • Managed Service for Valkey™
    • Managed Service for Apache Spark™
    • Yandex StoreDoc
    • Managed Service for OpenSearch
    • Managed Service for Apache Kafka®
    • Data Transfer
    • Yandex MPP Analytics Engine for PostgreSQL
    • Yandex Managed Service for Apache Airflow®
    • Data Processing
    • Yandex MetaData Hub
    • Managed Service for YDB
    • Managed Service for Sharded PostgreSQL
    • Managed Service for YTsaurus
    • Yandex WebSQL
    • DataLens
    • Yandex Search API
    • SpeechSense
    • SpeechKit
    • DataSphere
    • Vision OCR
    • Translate
    • Yandex Identity Hub
    • Key Management Service
    • Certificate Manager
    • Yandex Lockbox
    • Audit Trails
    • SmartCaptcha
    • Cloud Desktop
    • SourceCraft Code Assistant
    • Container Registry
    • Managed Service for GitLab
    • Managed Service for Prometheus®
    • Cloud Functions
    • API Gateway
    • Yandex Cloud Postbox
    • Message Queue
    • Serverless Integrations
    • IoT Core
    • Data Streams
    • Serverless Containers
    • Cloud Notification Service
    • Yandex Query
    • Identity and Access Management
    • Yandex Cloud Console
    • Resource Manager
    • Yandex Cloud Billing
    • Yandex Cloud Quota Manager
    • Cloud Apps
  • System Status
  • Marketplace
    • Featured
    • Infrastructure & Network
    • Data Platform
    • AI for business
    • Security
    • DevOps tools
    • Serverless
    • Monitoring & Resources
  • All Solutions
    • By industry
    • By use case
    • Economics and Pricing
    • Security
    • Technical Support
    • Start testing with double trial credits
    • Cloud credits to scale your IT product
    • Gateway to Russia
    • Cloud for Startups
    • Center for Technologies and Society
    • Yandex Cloud Partner program
    • Price calculator
    • Pricing plans
  • Customer Stories
  • Documentation
  • Blog
© 2026 Direct Cursus Technology L.L.C.
Yandex Cloud CDN
    • All guides
      • Creating a resource
      • Copying configuration from one resource to another
      • Updating basic settings of a resource
      • Getting information about a resource
      • Configuring resource caching
      • Configuring log export
      • Prefetching files to the CDN server cache
      • Purging resource cache
      • Configuring request and response headers
      • Configuring CORS for responses to clients
      • Configuring HTTP methods
      • Setting up an HTTP response
      • Enabling file compression
      • Enabling file segmentation
      • Enabling origin shielding
      • Setting up a request redirect
      • Enabling a resource to follow request redirects
      • Setting up hiding of origin headers
      • Setting up access via a secure token
      • Setting up location rules
      • Setting up a server name for SNI
      • Suspending and resuming a resource
      • Managing resource labels
      • Configuring dedicated IP addressing
      • Configuring a TLS profile
      • Deleting a resource
      • Viewing resource statistics
  • Access management
  • Pricing policy
  • Terraform reference
  • Metrics Monitoring
  • Request logs
  • Audit Trails events
  • Release notes
  • Troubleshooting
  1. Step-by-step guides
  2. Resources
  3. Configuring a TLS profile

Configuring a TLS profile for a CDN resource

Written by
Yandex Cloud
Updated at July 20, 2026
View in Markdown

Cloud CDN supports TLS 1.0 and higher for client connections.

For added CDN resource security, configure a dedicated profile to restrict the allowed TLS versions.

For more information, see TLS profiles.

REST API
gRPC API

To enable the option, add the tls section to the CDN resource specification in the request body when using the create or update method for a Resource:

"tls": {
  "profile": "<TLS_profile>"
}

Supported security profiles:

  • PROFILE_STRICT: Only TLS 1.3-compatible ciphers.

    Note

    All TLS 1.3 ciphers are considered secure.

  • PROFILE_SECURE: Ciphers compatible with TLS 1.2+ that support PFS (Perfect Forward Secrecy) and AEAD (Authenticated Encryption with Asssociated Data).

  • PROFILE_COMPATIBLE: Ciphers compatible with TLS 1.2+ that have no known critical vulnerabilities.

    This profile is used by default.

  • PROFILE_LEGACY: Ciphers compatible with TLS 1.0+ that have no known critical vulnerabilities.

Here is an example:

export IAM_TOKEN=`yc iam create-token`
curl \
  --request POST \
  --header "Authorization: Bearer $IAM_TOKEN" \
  --header "Content-Type: application/json" \
  --url 'https://cdn.api.cloud.yandex.net/cdn/v1/resources' \
  --data '{
    "folderId": "b12m81qm6abc********",
    "cname": "cdn-portal.example.com",
    "origin": {
      "originSourceParams": {
        "source": "portal.example.com",
        "meta": {
          "common": { "name": "portal.example.com" }
        }
      }
    },
    "originProtocol": "HTTPS",
    "tls": {
      "profile": "PROFILE_SECURE"
    }
  }'

Result:

{
  "done": true,
  "metadata": {
    "@type": "type.googleapis.com/yandex.cloud.cdn.v1.CreateResourceMetadata",
    "resourceId": "bc8rgivxwhcy********"
  },
  "response": {
    "@type": "type.googleapis.com/yandex.cloud.cdn.v1.Resource",
    "active": true,
    ...
    "tls": {
      "profile": "PROFILE_SECURE"
    },
    ...
  },
  "id": "bc8y2mnkri2d********",
  "description": "Create resource",
  "createdAt": "2026-02-05T18:02:30.735628Z",
  "createdBy": "aje9k8luj4qf********",
  "modifiedAt": "2026-02-05T18:02:30.735628Z"
}

To enable the option, add the tls section to the CDN resource specification in the request body when calling ResourceService/Create or ResourceService/Update:

"tls": {
  "profile": "<TLS_profile>"
}

Supported security profiles:

  • PROFILE_STRICT: Only TLS 1.3-compatible ciphers.

    Note

    All TLS 1.3 ciphers are considered secure.

  • PROFILE_SECURE: Ciphers compatible with TLS 1.2+ that support PFS (Perfect Forward Secrecy) and AEAD (Authenticated Encryption with Asssociated Data).

  • PROFILE_COMPATIBLE: Ciphers compatible with TLS 1.2+ that have no known critical vulnerabilities.

    This profile is used by default.

  • PROFILE_LEGACY: Ciphers compatible with TLS 1.0+ that have no known critical vulnerabilities.

Here is an example:

export IAM_TOKEN=`yc iam create-token`
grpcurl \
  -rpc-header "Authorization: Bearer $IAM_TOKEN" \
  -d '{
        "folder_id": "b12m81qm6abc********",
        "cname": "cdn-portal.example.com",
        "origin": {
          "origin_source_params": {
            "source": "portal.example.com",
            "meta": {
              "common": { "name": "portal.example.com" }
            }
          }
        },
        "origin_protocol": "HTTPS",
        "tls": {
          "profile": "PROFILE_SECURE"
        }
      }' \
  cdn.api.cloud.yandex.net:443 \
  yandex.cloud.cdn.v1.ResourceService/Create

Result:

{
  "id": "bc8h7teov4q7********",
  "description": "Create resource",
  "createdAt": "2026-02-05T18:19:01.262477Z",
  "createdBy": "aje9k8luj4qf********",
  "modifiedAt": "2026-02-05T18:19:01.262477Z",
  "done": true,
  "metadata": {"@type":"type.googleapis.com/yandex.cloud.cdn.v1.CreateResourceMetadata","resourceId":"bc8r4gogfqeb********"},
  "response": {..."tls":{"profile":"PROFILE_SECURE"},...}
}

Useful linksUseful links

  • TLS profiles
  • API authentication

Was the article helpful?

Previous
Configuring dedicated IP addressing
Next
Deleting a resource
© 2026 Direct Cursus Technology L.L.C.