Verifying XML Signature in Powershell with PEM Certificate
问题 I am trying to create a powershell script that will consume data with in a XML document. However, prior to doing any work I need to verify the XML hasn't been tampered with by verifying the signature. I have a copy of the public key for the cert used to sign the XML in PEM format, but I can not figure out how to get powershell to use that cert. The closes I have come to getting this to work is the following code... $Path = "data.xml" $Xmldata = new-object Xml.XmlDocument $Xmldata