python-ndn icon indicating copy to clipboard operation
python-ndn copied to clipboard

LVS Key Suggestor does not return trust anchor

Open tianyuan129 opened this issue 2 years ago • 1 comments

The highlighted piece of code avoids returning all self-signed certificates.

# This is to avoid self-signed certificate
if (not cert.signature_info or not cert.signature_info.key_locator
        or not cert.signature_info.key_locator.name):
    continue

If trust anchor is in the keychain, the key suggestor never returns it even if it's a valid signer.

tianyuan129 avatar Nov 12 '22 10:11 tianyuan129