Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

POST /deliveryservices/sslkeys/add accepts unrelated certificates #7046

@zrhoffman

Description

@zrhoffman

This Bug Report affects these Traffic Control components:

  • Traffic Ops

Current behavior:

POST /api/4.1/deliveryservices/sslkeys/add accepts unrelated certificates included in the certificate.crt field

Expected behavior:

Including a certificate that is not part of the Leaf-Intermediate-Root chain should result in a response with a 400-level HTTP status code.

Steps to reproduce:

  1. Create Delivery Service 1
  2. Generate a self-signed certificate for DS 1
  3. Create Delivery Service 2
  4. Generate a self-signed certificate for DS 2
  5. Append the DS 2 certificate to the bottom of the DS 1 certificate and POST

POST /api/4.1/deliveryservices/sslkeys/add response (HTTP response status code 200):

{
  "alerts": [
    {
      "text": "WARNING: SSL keys were successfully added for 'my-delivery-service-1', but the input certificate may be invalid (certificate is signed by an unknown authority)",
      "level": "warning"
    }
  ]
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    SSLsupport for/problems with SSL featuresTraffic Opsrelated to Traffic Opsbugsomething isn't working as intendedlow difficultythe estimated level of effort to resolve this issue is lowlow impactaffects only a small portion of a CDN, and cannot itself break one

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions