我正在尝试为文本块创建数字签名。虽然我似乎能够创建签名,但它不同于我们的测试用例所要求的数字测试签名。我使用的代码如下所示。
X509Store store = new X509Store(StoreName.My, StoreLocation.CurrentUser);
store.Open(OpenFlags.OpenExistingOnly);
X509Certificate2Collection certcol = store.Certificates.Find(X509FindType.FindByIssuerName, "eBusiness Development CA
在TLS 1.2规范中,说明如下:
If the client provided a "signature_algorithms" extension, then all
certificates provided by the server MUST be signed by a hash/signature
algorithm pair that appears in that extension.
但是,当我在OpenSSL (作为服务器)中尝试以下命令时,它运行时没有任何问题:
openssl s_server -accept 443 -cert ecdsa-cert.