[sr-dev] git:5.6:7bb9cadb: stirshaken: Properly handle intermediary/chain certificates when caching certificates