my $verifier = XML::Sig->new ({ cert => '/path/to/signer/cert.pem' }); if ($verifier->verify ($saml_string_decoded) { # now do something with it