My code receives the saml response in xml format. I need to verify the signature to confirm that response is not tampered, and I also need to confirm that this is coming from a trusted source. (in a settings file I have cert thumbprint and issuername for the trust certs). I am using componentspace tools where I can call GetCertificate() to get the X509Certificate2 from the xml file.
To verify the signed xml, do I need to install this cert to the cert store? Is it possible to verify an xml signed doc with the cert you construct from the xml itself?