Skip to content

CMS/PKCS7 signatures do not use strict DER, causing a deprecation warning from pyca/cryptography #1028

@DemiMarie

Description

@DemiMarie

Describe the Bug

CMS/PKCS7 signatures do not use DER. This causes pyca/cryptography to emit a deprecation warning because they want to remove support for arbitrary BER.

I am not the person who found this problem. I am merely relaying the report by @uedvt359 in pyca/cryptography#12936 (comment). Therefore, some of the information is missing.

To Reproduce

I do not have a reproducer myself, but see pyca/cryptography#12936 (comment).

Expected Behavior

CMS signatures use DER.

Screenshots and Logs

I don't have access to the deployment in question

Product Deployment

Please complete the following information:

  • Deployment format: [e.g. software, container] Not sure.
  • Version [e.g. 8.0.0] 9.3.7

Desktop

N/A as the request is being made from Python using the API. The relevant code is here.

Additional Context

pyca/cryptography has two parsers for CMS and PKCS12: a strict DER parser written in Rust and a BER parser using OpenSSL. The OpenSSL-based parser is deprecated, and pyca/cryptography raises a warning when it must be used. See pyca/cryptography#12936 for details.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions