"unknown signature algorithm" when trying to verify a certificate based on ECC key
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- ruby
- 領域
- cryptography, security
調査の方向性
報告されている signer_certificate.verify(certificate.public_key) の呼び出しから始め、RSA 証明書の詳細と issue 内の ECC 証明書の詳細を比較します。Ruby OpenSSL binding が署名アルゴリズム rsassaPss とキー id-ecPublicKey をどのように処理するかを追跡し、不明な署名アルゴリズムのエラーを再現します。報告されている証明書検証パスで、このアルゴリズムが予期せず拒否されなくなれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Hi everyone, I don't know much about SSL understanding and I have a question because I try to verify a certifcate.
I hope someone can help me and/or maybe guide me to a solution.
Context occurs on a process of strong user authentication where I can receive either an old certificate or a new one. My code has to work with both of them.
I think I have to verify the signature of a certificate to provide this strong integrity.
I don't have any issue with the old certificate which is based on RSA Keys, but I got one with the new certificate where it is an ECC key.
At the moment I have no choice but to bypass the check on the new certificate.
The old certificate has the following lines in it (I have omitted some lines) :
Certificate:
Data:
Version: 3 (0x2)
Signature Algorithm: sha256WithRSAEncryption
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
RSA Public-Key: (2048 bit)
Modulus:
-----
Exponent: 65537 (0x10001)
The new certificate has the following lines in it :
Certificate:
Data:
Version: 3 (0x2)
Signature Algorithm: rsassaPss
Hash Algorithm: sha256
Mask Algorithm: mgf1 with sha256
Salt Length: 0x20
Trailer Field: 0xBC (default)
Subject Public Key Info:
Public Key Algorithm: id-ecPublicKey
Public-Key: (256 bit)
pub:
--------
ASN1 OID: prime256v1
NIST CURVE: P-256
I usually execute the following command to verify the certificate : signer_certificate.verify(certificate.public_key)
I get unknown signature algorithm when I try to use this command on the new certificate.
- 主要言語
- C
- スター
- 276
- フォーク
- 203
- 平均マージ
- 1日 41分
- マージ済み PR(30日)
- 8
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ruby/openssl のほかの issue
-
Add OpenSSL::SSL::SSLContext#client_hello_cb= (binding for SSL_CTX_set_client_hello_cb())対応中かも @kou が 3 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 53/100
ruby/openssl#1125 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
ruby/openssl#1118 · コメント 5 件 ·
メンテナーはふだん 1 日以内に返信
-
Expose XOFs like SHAKE128 and SHAKE256対応中かも @rhenium が 99 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
ruby/openssl#1082 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
ruby/openssl#1075 · コメント 4 件 ·
メンテナーはふだん 1 日以内に返信
-
Unchecked *_set_* calls対応中かも @ndossche が 169 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
ruby/openssl#1038 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
ChrisTitusTech/dwm-titus#397 ·
メンテナーはふだん 1 日以内に返信
-
good first issue help wanted language:fr translation
難易度 1/5 1〜3時間 初心者へのやさしさ 85/100
mrvi0/cli-cheatsheet#160 ·
-
Test modules use volatile int for cross-thread flags instead of atomics対応中かも @rahimuddin140 が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
valkey-io/valkey#4899 · コメント 1 件 ·
メンテナーはふだん 2 日以内に返信
-
Profiler (Remotery) leaks a socket for every connection that fails the WebSocket handshake対応中かも @rthery が今日担当しました。 オープンtriage
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
Symlink in release archive attempts traversal対応中かも @Tiancheng-Xu が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
redis/hiredis#1388 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信