[sr-dev] git:5.5:e75897a1: stirshaken: Properly handle intermediary/chain certificates when caching certificates