[PATCH 1/6] PKCS#7: fix certificate chain verification