chainoftrust: Prevent infinite loop for self signed certificates
chainoftrust: Prevent infinite loop for self signed certificates

Refs #76888

Change-Id: I448a54c90737bebc7fbe7d1d21150b256e0e91c1

savoirfairelinux/ring-lrc,savoirfairelinux/ring-lrc,savoirfairelinux/ring-lrc,savoirfairelinux/ring-lrc,savoirfairelinux/ring-lrc