Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Error: "alg" parameter "ES256" requires curve "prime256v1"

オープン
#862 コメント 8 件 リアクション 2 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
35/100
issue の種類
ドキュメント
明瞭さ
説明が足りない
活発さ
停滞
技術スタック
javascript, node.js

調査の方向性

Changelog、Migration guide、および ES256 カーブを拒否するバリデーションのソースコードから始めます。prime256v1 の代わりに secp256k1 を使用することの影響を調査し、不足しているガイダンスを特定します。プロジェクトのドキュメントで、カーブ要件、セキュリティ上の影響、およびチェックを回避することが適切な場合が明確に説明されていれば完了です。

索引モデルが issue の本文から書いたものです。

説明

Not a bug report, but a question.

My code started to fail with version 9 because of this error.
I've read the Changelog, Migration guide and source code that does this validation and see where it comes from.

I also can see that I can bypass this check with allowInvalidAsymmetricKeyTypes.

What I cannot find information about is what is the implication that I have used "wrong curve" when generating the keys?

In particular, I have used this command before: openssl ecparam -name secp256k1 -genkey -noout -out key.pem.
"Correct" command with the "correct" curve looks like this: openssl ecparam -name prime256v1 -genkey -noout -out key.pem.

Are my tokens vulnerable to some attack or something, because I have used the "wrong curve" when generating the keys?

主要言語
JavaScript
スター
18.2k
フォーク
1.3k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

auth0/node-jsonwebtoken のほかの issue

auth0/node-jsonwebtoken の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。