|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #81528 Support multiple peer_fingerprint values per algorithm
Submitted: 2021-10-16 00:54 UTC Modified: 2021-10-16 01:12 UTC
From: david at mandelberg dot org Assigned:
Status: Open Package: OpenSSL related
PHP Version: master-Git-2021-10-16 (Git) OS:
Private report: No CVE-ID: None
Have you experienced this issue?
Rate the importance of this bug to you:

 [2021-10-16 00:54 UTC] david at mandelberg dot org
Would it be possible to extend peer_fingerprint from to support an array of multiple fingerprints per algorithm, instead of just one? I don't currently see a way to configure secure certificate verification for a redundant service (where each server has its own certificate) without using a CA.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2021-10-16 01:10 UTC]
Or easier, change the array form to support non-string keys (or ignore keys entirely) and instead deduce algorithm by the length - like it already does for the string form.
 [2021-10-16 01:12 UTC] david at mandelberg dot org
I don't think deducing the algorithm from the length is a good idea long-term, because there are multiple good algorithms with the same output length. E.g., SHA-256 and SHA3-256.
 [2023-07-19 11:30 UTC] kjshelen34 at gmail dot com
That was so amazing.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Jul 25 17:01:27 2024 UTC