Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for matching JWK private key #1391

Open
AnthonyPoschen opened this issue Apr 18, 2024 · 0 comments
Open

Support for matching JWK private key #1391

AnthonyPoschen opened this issue Apr 18, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@AnthonyPoschen
Copy link

Is your feature request related to a problem? Please describe.
discovered JWK's in source code wrote a custom rule to match them

Describe the solution you'd like
my custom rule added for everyone else as a default rule.

Describe alternatives you've considered
None. if it isn't worth it close the ticket.

Additional context

[[rules]]
    id    = "JWK private keys"
    regex = '''\{(?:\\"|")kty(?:\\"|"):(?:\\"|")(.*?)(?:\\"|"),(?:\\"|")n(?:\\"|"):(?:\\"|")(.*?)(?:\\"|"),(?:\\"|")e(?:\\"|"):(?:\\"|")(.*?)(?:\\"|"),(?:\\"|")d(?:\\"|"):(?:\\"|")(.*?)(?:\\"|"),(?:\\"|")p(?:\\"|"):(?:\\"|")(.*?)(?:\\"|"),(?:\\"|")q(?:\\"|"):(?:\\"|")(.*?)(?:\\"|"),(?:\\"|")dp(?:\\"|"):(?:\\"|")(.*?)(?:\\"|"),(?:\\"|")dq(?:\\"|"):(?:\\"|")(.*?)(?:\\"|"),(?:\\"|")qi(?:\\"|"):(?:\\"|")(.*?)(?:\\"|")\}'''

https://phpseclib.com/docs/rsa-keys#private-keys-3

cc @zricethezav

@AnthonyPoschen AnthonyPoschen added the enhancement New feature or request label Apr 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant