Skip to content

Instantly share code, notes, and snippets.

@nelyj
Last active May 30, 2016 06:10
Show Gist options
  • Select an option

  • Save nelyj/84d22500611620b8b3bebea30243108a to your computer and use it in GitHub Desktop.

Select an option

Save nelyj/84d22500611620b8b3bebea30243108a to your computer and use it in GitHub Desktop.
XMLSEC format
<References>
<Book>
<Author>
<FirstName>Bruce</FirstName>
<LastName>Schneier</LastName>
</Author>
<Title>Applied Cryptography</Title>
</Book>
<Web>
<Title>XMLSec</Title>
<Url>http://www.aleksey.com/xmlsec/</Url>
</Web>
<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
<SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
<Reference URI="">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
<DigestValue/>
</Reference>
</SignedInfo>
<SignatureValue/>
<KeyInfo>
<X509Data>
<X509SubjectName/>
<X509IssuerSerial/>
<X509Certificate/>
</X509Data>
<KeyValue/>
</KeyInfo>
</Signature>
</References>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment