Skip to content

Add Public Key from CSR#2277

Open
Fra3zz wants to merge 5 commits intogchq:masterfrom
Fra3zz:master
Open

Add Public Key from CSR#2277
Fra3zz wants to merge 5 commits intogchq:masterfrom
Fra3zz:master

Conversation

@Fra3zz
Copy link
Copy Markdown

@Fra3zz Fra3zz commented Mar 22, 2026

Summary

Extracts the public key from an ECDSA or RSA Certificate Signing Request (CSR) and encodes it in PEM format.

Tests

All tests pass in CI (see #1 and #2).
Added test cases covering:

  • RSA CSR public key extraction
  • ECDSA CSR public key extraction
  • PEM output formatting

Notes

  • Uses only the existing node-forge dependency (no additional packages added)
  • Supports standard PEM-encoded CSRs

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.

1 participant