Skip to content
This repository was archived by the owner on Jun 17, 2026. It is now read-only.

feature: add option for definite-length BER encoding - #397

Open
getvictor wants to merge 2 commits into
seize-the-dave:masterfrom
getvictor:master
Open

getvictor wants to merge 2 commits into
seize-the-dave:masterfrom
getvictor:master

Conversation

@getvictor

Copy link
Copy Markdown

Some SCEP servers require definite-length encoding and reject messages
with indefinite-length BER encoding. This adds an AsnEncoding option
that can be set on the Client to control the encoding format.

Usage:

    Client client = new Client(url, verifier);
    client.setAsnEncoding(AsnEncoding.DL);

The encoding is applied to both the inner CMSEnvelopedData and the outer CMSSignedData structures.

  Some SCEP servers require definite-length encoding and reject messages
  with indefinite-length BER encoding. This adds an AsnEncoding option
  that can be set on the Client to control the encoding format.

  Usage:
    Client client = new Client(url, verifier);
    client.setAsnEncoding(AsnEncoding.DL);

  The encoding is applied to both the inner CMSEnvelopedData and the
  outer CMSSignedData structures.
@getvictor
getvictor marked this pull request as ready for review February 4, 2026 23:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant