Skip to content

Test/x509 crl generator duplicate serial 14597853205968635182#126

Merged
microshine merged 5 commits intoPeculiarVentures:masterfrom
aww-aww:test/x509-crl-generator-duplicate-serial-14597853205968635182
Mar 20, 2026
Merged

Test/x509 crl generator duplicate serial 14597853205968635182#126
microshine merged 5 commits intoPeculiarVentures:masterfrom
aww-aww:test/x509-crl-generator-duplicate-serial-14597853205968635182

Conversation

@aww-aww
Copy link
Copy Markdown
Contributor

@aww-aww aww-aww commented Feb 6, 2026

No description provided.

google-labs-jules Bot and others added 5 commits February 6, 2026 16:31
Replaced `any[]` arguments in `getThumbprint`, `getKeyIdentifier`, and `export` methods across multiple files (`src/x509_cert.ts`, `src/x509_crl.ts`, `src/name.ts`, `src/public_key.ts`) with typed optional arguments.
Refactored `src/extensions/crl_distribution_points.ts` to use `TextObject` instead of `any`, fixing a potential type error with undefined values.
Refactored `src/algorithm.ts` to remove `any` casting and fixed a potential bug where a normalized algorithm object was ignored.

Co-authored-by: aww-aww <2776327+aww-aww@users.noreply.github.com>
- Optimize `encodeStruct` by using a simple loop for base64 splitting instead of complex logic. (47% faster)
- Pre-compile `rEolPattern` regex for `decodeWithHeaders` to avoid recompilation in loop.

Co-authored-by: aww-aww <2776327+aww-aww@users.noreply.github.com>
Refactor common TypeScript errors and remove 'any' usage
…1372340

Optimize PEM encoding and decoding
Add a new test file `test/test_x509_crl_generator.ts` to verify that `X509CrlGenerator.create` throws an error when duplicate serial numbers are provided in the `entries` array. This ensures coverage for the duplicate serial number validation logic.

Co-authored-by: aww-aww <2776327+aww-aww@users.noreply.github.com>
Copy link
Copy Markdown
Contributor

@microshine microshine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This PR is missing a general description explaining its purpose and scope. Please add a summary so reviewers can better understand the intent of the changes.

Additionally, besides the main change (adding a test for CRL creation), this PR also includes modifications that were previously proposed in other PRs created by you and are still under review.

@microshine microshine merged commit fde30e0 into PeculiarVentures:master Mar 20, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants