Skip to content

[Bug]: scep provisioner returns root and intermediate certificate despite --exclude-intermediate flag set #2181

@williamhargrove

Description

@williamhargrove

Steps to Reproduce

Create a SCEP provisioner (as per the example provisioner within the smallstep documentation) and then update, setting the following flags:

        --include-root
        --exclude-intermediate

The output of the provisioner is as below:

{
      "type": "SCEP",
      "name": "SCEP",
      "forceCN": true,
      "challenge": "*** REDACTED ***",
      "includeRoot": true,
      "excludeIntermediate": true,
      "minimumPublicKeyLength": 2048,
      "decrypterCertificate": "KioqIFJFREFDVEVEICoqKg==",
      "decrypterKeyPEM": "KioqIFJFREFDVEVEICoqKg==",
      "decrypterKey": "*** REDACTED ***",
      "decrypterKeyPassword": "*** REDACTED ***",
      "encryptionAlgorithmIdentifier": 2,
      "options": {
        "x509": {

        },
        "ssh": {

        }
      },
      "claims": {
        "minTLSCertDuration": "336h0m0s",
        "maxTLSCertDuration": "2160h0m0s",
        "defaultTLSCertDuration": "2160h0m0s",
        "enableSSHCA": false,
        "disableRenewal": false,
        "allowRenewalAfterExpiry": false,
        "disableSmallstepExtensions": false
      }
    }

With this configuration I would expect just the root CA cert to be returned.

Using a scep client under linux, get the CA cert,

./sscep getca -c test -u http://red.act.ed/scep/SCEP

This call will return both the root and intermediate certificate.

Your Environment

  • OS - Docker container (Alpine Linux v3.20)
  • step-ca Version - step-ca:0.28.1

Expected Behavior

Using a scep client under linux, get the CA cert,

./sscep getca -c test -u http://red.act.ed/scep/SCEP

This call will return both the root and intermediate certificate.

I would have expected this to return just the root CA

Actual Behavior

Two certificates are returned, the root and the intermediate.

Additional Context

No response

Contributing

Vote on this issue by adding a 👍 reaction.
To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).

Metadata

Metadata

Assignees

Labels

bugneeds triageWaiting for discussion / prioritization by team

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions