|  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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: david at mandelberg dot org
New email:
PHP Version: OS:


 [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.
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Wed Dec 08 05:03:34 2021 UTC