diff options
author | Leif Johansson <leifj@sunet.se> | 2016-03-18 12:06:54 +0100 |
---|---|---|
committer | Leif Johansson <leifj@sunet.se> | 2016-03-18 12:06:54 +0100 |
commit | a1d9696a14711245830990da69b094779e03244b (patch) | |
tree | c02e05fe9796720bb3caf09c78c319177c6a970b /xslt/sign.xsl | |
parent | d5a90365d5c93570dc8d50538c20c1f87474cb2c (diff) |
cleanup, implement PublicationInfo and remove saml-md-tool dependency
Diffstat (limited to 'xslt/sign.xsl')
-rw-r--r-- | xslt/sign.xsl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xslt/sign.xsl b/xslt/sign.xsl index 19aa9c55..51d2492a 100644 --- a/xslt/sign.xsl +++ b/xslt/sign.xsl @@ -3,6 +3,7 @@ xmlns:md="urn:oasis:names:tc:SAML:2.0:metadata" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:exsl="http://exslt.org/common" xmlns:mdrpi="urn:oasis:names:tc:SAML:metadata:rpi" @@ -18,10 +19,11 @@ <ds:SignedInfo> <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /> <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /> - <ds:Reference URI=""> + <ds:Reference> + <xsl:attribute name="URI"><xsl:text>#</xsl:text><xsl:value-of select="@ID"/></xsl:attribute> <ds:Transforms> <ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/> - <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"/> + <ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/> </ds:Transforms> <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> <ds:DigestValue></ds:DigestValue> |