"unknown signature algorithm" when trying to verify a certificate based on ECC key
維護者通常 1 天內回覆
還沒有人認領這個 Issue。
評估
- 難度
- 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 天 7 小時
- 30 天內合併 PR
- 9
環境準備
- 沒有 Dockerfile 或 Docker Compose 檔案
- 沒有 Pull Request 範本
- 閱讀貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
ruby/openssl 的其他 Issue
-
Add OpenSSL::SSL::SSLContext#client_hello_cb= (binding for SSL_CTX_set_client_hello_cb())可能已有人在做 @kou 於 7 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 53/100
維護者通常 1 天內回覆
-
難度 3/5 1-2 天 新手友好度 55/100
維護者通常 1 天內回覆
-
Expose XOFs like SHAKE128 and SHAKE256可能已有人在做 @rhenium 於 104 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 48/100
維護者通常 1 天內回覆
-
難度 5/5 一週以上 新手友好度 35/100
維護者通常 1 天內回覆
-
Unchecked *_set_* calls可能已有人在做 @ndossche 於 174 天前認領。 未關閉
難度 4/5 3-5 天 新手友好度 35/100
維護者通常 1 天內回覆
相似的 Issue
-
category:port-update
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 2 天內回覆
-
type-bug
難度 2/5 1-3 小時 新手友好度 72/100
維護者通常 1 天內回覆
-
feat(palindrome): add C solution可能已有人在做 @aadiitya2007 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 82/100
techcsispit/code-corner#58 · 1 則留言 ·
維護者通常 1 天內回覆
-
logo request
難度 2/5 1-3 小時 新手友好度 77/100
fastfetch-cli/fastfetch#2661 ·
維護者通常 1 天內回覆
-
Mark ignored Mac OS partitions RecoveryOSContainer and iBootSystemContainer可能已有人在做 @meven 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 68/100
storaged-project/udisks#1559 ·