| 1 |
Sample XML Signatures Produced Using the Phaos XML Toolkit |
| 2 |
|
| 3 |
November 26, 2002 |
| 4 |
|
| 5 |
|
| 6 |
Contents of phaos-xmldsig-three |
| 7 |
=============================== |
| 8 |
|
| 9 |
signature-rsa-enveloped.xml |
| 10 |
--------------------------- |
| 11 |
Contains an RSA enveloped signature. |
| 12 |
|
| 13 |
|
| 14 |
signature-rsa-enveloping.xml |
| 15 |
---------------------------- |
| 16 |
Contains an RSA enveloping signature. |
| 17 |
|
| 18 |
|
| 19 |
signature-rsa-detached.xml |
| 20 |
-------------------------- |
| 21 |
Contains an RSA detached signature. |
| 22 |
|
| 23 |
|
| 24 |
signature-dsa-enveloped.xml |
| 25 |
--------------------------- |
| 26 |
Contains a DSA enveloped signature. |
| 27 |
|
| 28 |
|
| 29 |
signature-dsa-enveloping.xml |
| 30 |
---------------------------- |
| 31 |
Contains a DSA enveloping signature. |
| 32 |
|
| 33 |
|
| 34 |
signature-dsa-detached.xml |
| 35 |
-------------------------- |
| 36 |
Contains a DSA detached signature. |
| 37 |
|
| 38 |
|
| 39 |
signature-hmac-md5-c14n-enveloping.xml |
| 40 |
-------------------------------------- |
| 41 |
Contains an enveloping MD5 HMAC signature and uses XML Canonicalization |
| 42 |
as the canonicalization method. The HMAC secret is the ASCII encoding of |
| 43 |
the word "test". |
| 44 |
|
| 45 |
|
| 46 |
signature-hmac-sha1-exclusive-c14n-enveloped.xml |
| 47 |
------------------------------------------------ |
| 48 |
Contains an enveloped SHA-1 HMAC signature and uses the Exclusive XML |
| 49 |
Canonicalization canonicalization method. The HMAC secret is the ASCII |
| 50 |
encoding of the word "test". |
| 51 |
|
| 52 |
|
| 53 |
signature-hmac-sha1-exclusive-c14n-comments-detached.xml |
| 54 |
-------------------------------------------------------- |
| 55 |
Contains a detached SHA-1 HMAC signature and uses the Exclusive XML |
| 56 |
Canonicalization With Comments canonicalization method. The HMAC secret |
| 57 |
is the ASCII encoding of the word "test". |
| 58 |
|
| 59 |
|
| 60 |
signature-hmac-sha1-40-c14n-comments-detached.xml |
| 61 |
------------------------------------------------- |
| 62 |
Contains a detached 40-byte SHA-1 HMAC signature and uses the XML |
| 63 |
Canonicalization With Comments canonicalization method. The HMAC secret is |
| 64 |
the ASCII encoding of the word "test". |
| 65 |
|
| 66 |
|
| 67 |
signature-hmac-sha1-40-exclusive-c14n-comments-detached.xml |
| 68 |
----------------------------------------------------------- |
| 69 |
Contains a detached 40 byte SHA-1 HMAC signature and uses the Exclusive |
| 70 |
XML Canonicalization With Comments canonicalization method. The HMAC secret |
| 71 |
is the ASCII encoding of the word "test". |
| 72 |
|
| 73 |
|
| 74 |
signature-dsa-detached-manifest.xml |
| 75 |
----------------------------------- |
| 76 |
Contains a detached DSA signature with a manifest. |
| 77 |
|
| 78 |
|
| 79 |
signature-rsa-detached-manifest.xml |
| 80 |
---------------------------------- |
| 81 |
Contains a detached RSA signature with a manifest. |
| 82 |
|
| 83 |
|
| 84 |
signature-rsa-detached-b64-transform.xml |
| 85 |
---------------------------------------- |
| 86 |
Contains a detached RSA signature with a Base64 decode transform. |
| 87 |
|
| 88 |
|
| 89 |
signature-rsa-detached-xpath-transform.xml |
| 90 |
------------------------------------------ |
| 91 |
Contains a detached RSA signature with an XPath transform. |
| 92 |
|
| 93 |
|
| 94 |
signature-rsa-xpath-transform-enveloped.xml |
| 95 |
------------------------------------------ |
| 96 |
Contains an RSA signature with an XPath transform that produces the |
| 97 |
same result as the enveloped signature algorithm. |
| 98 |
|
| 99 |
|
| 100 |
signature-rsa-detached-xslt-transform.xml |
| 101 |
------------------------------------------ |
| 102 |
Contains a detached RSA signature with an XSLT transformation. |
| 103 |
|
| 104 |
|
| 105 |
signature-rsa-detached-x509-data.xml |
| 106 |
------------------------------------ |
| 107 |
Contains a detached RSA signature with several X509Data subelements. |
| 108 |
|
| 109 |
|
| 110 |
signature-rsa-detached-x509-data-subject-name.xml |
| 111 |
------------------------------------ |
| 112 |
Contains a detached RSA signature with an X509SubjectName that |
| 113 |
references the subject name of the certificate stored in |
| 114 |
certs/rsa-client-cert.der. |
| 115 |
|
| 116 |
|
| 117 |
signature-rsa-detached-x509-data-issuer-serial.xml |
| 118 |
------------------------------------ |
| 119 |
Contains a detached RSA signature with an X509IssuerSerial that |
| 120 |
references the issuer and serial number of the certificate stored in |
| 121 |
certs/rsa-client-cert.der. |
| 122 |
|
| 123 |
|
| 124 |
signature-rsa-detached-x509-data-ski.xml |
| 125 |
------------------------------------ |
| 126 |
Contains a detached RSA signature with an X509SKI that |
| 127 |
references the Subject Key Identifier of the certificate stored in |
| 128 |
certs/rsa-client-cert.der. |
| 129 |
|
| 130 |
|
| 131 |
signature-rsa-detached-x509-data-client-cert.xml |
| 132 |
------------------------------------ |
| 133 |
Contains a detached RSA signature with an X509Certificate that |
| 134 |
represents the certificate stored in certs/rsa-client-cert.der. |
| 135 |
|
| 136 |
|
| 137 |
signature-rsa-detached-x509-data-cert-chain.xml |
| 138 |
------------------------------------ |
| 139 |
Contains a detached RSA signature with two X509Certificate |
| 140 |
elements that represent the certificates stored in |
| 141 |
certs/rsa-client-cert.der and certs/rsa-ca-cert.der. |
| 142 |
|
| 143 |
|
| 144 |
signature-rsa-detached-xslt-transform-retrieval-method.xml |
| 145 |
------------------------------------ |
| 146 |
Contains a detached RSA signature with an XSLT transform and a KeyInfo |
| 147 |
element that refers to an external X.509 certificate. The certificate |
| 148 |
is located in certs/rsa-client-cert.der. |
| 149 |
|
| 150 |
|
| 151 |
signature-big.xml |
| 152 |
----------------- |
| 153 |
Contains a larger detached RSA signature that contains a manifest and many |
| 154 |
references that test various transformation algorithms, URI reference syntax |
| 155 |
formats, etc. The KeyInfo contains a KeyName whose value is the subject |
| 156 |
name of the certificate stored in certs/rsa-client-cert.der. |
| 157 |
|
| 158 |
|
| 159 |
signature-rsa-detached-xslt-transform-bad-retrieval-method.xml |
| 160 |
--------------------------------------------------------------- |
| 161 |
Contains a detached RSA signature with an XSLT transform and a KeyInfo |
| 162 |
element that refers to an INCORRECT external X.509 certificate. (The correct |
| 163 |
X.509 certificate is located in certs/rsa-client-cert.der.) Verification |
| 164 |
should FAIL. |
| 165 |
|
| 166 |
|
| 167 |
signature-rsa-enveloped-bad-digest-val.xml |
| 168 |
------------------------------------------ |
| 169 |
Contains an enveloped RSA signature that contains a reference with an INCORRECT |
| 170 |
digest value. Verification should FAIL. |
| 171 |
|
| 172 |
|
| 173 |
signature-rsa-enveloped-bad-sig.xml |
| 174 |
----------------------------------- |
| 175 |
Contains an enveloped RSA signature that contains a reference that was added |
| 176 |
after the signature value was computed. Verification should FAIL. |
| 177 |
|
| 178 |
|
| 179 |
document.xml |
| 180 |
------------ |
| 181 |
An XML document that is referenced by some of the signature examples. |
| 182 |
|
| 183 |
|
| 184 |
document-stylesheet.xml |
| 185 |
----------------------- |
| 186 |
The same as document.xml with the addition of an xsl-stylesheet processing |
| 187 |
instruction. |
| 188 |
|
| 189 |
|
| 190 |
document.xsl |
| 191 |
------------ |
| 192 |
An XSL stylesheet referenced by several of the signature examples and |
| 193 |
document-stylesheet.xml. |
| 194 |
|
| 195 |
|
| 196 |
document.b64 |
| 197 |
------------ |
| 198 |
A Base64 encoded XML document. |
| 199 |
|
| 200 |
|
| 201 |
README.txt |
| 202 |
---------- |
| 203 |
This file. |
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
Contents of phaos-xmldsig-three/certs |
| 208 |
===================================== |
| 209 |
|
| 210 |
rsa-cert.der |
| 211 |
------------ |
| 212 |
An RSA end entity certificate issued by the CA certificate contained in |
| 213 |
rsa-ca-cert.der. |
| 214 |
|
| 215 |
enc-rsa-key.der |
| 216 |
--------------- |
| 217 |
The RSA private key that matches rsa-cert.der, password-encrypted using |
| 218 |
the PKCS#8 format. The password is "test". |
| 219 |
|
| 220 |
dsa-cert.der |
| 221 |
------------ |
| 222 |
An DSA end entity certificate issued by the CA certificate contained in |
| 223 |
dsa-ca-cert.der. |
| 224 |
|
| 225 |
enc-dsa-key.der |
| 226 |
--------------- |
| 227 |
The DSA private key that matches dsa-cert.der, password-encrypted using |
| 228 |
the PKCS#8 format. The password is "test". |
| 229 |
|
| 230 |
rsa-ca-cert.der |
| 231 |
--------------- |
| 232 |
An RSA self-signed CA certificate. |
| 233 |
|
| 234 |
dsa-ca-cert.der |
| 235 |
--------------- |
| 236 |
A DSA self-signed CA certificate. |
| 237 |
|
| 238 |
crl.der |
| 239 |
------- |
| 240 |
A sample CRL that revokes rsa-cert.der. |
| 241 |
|
| 242 |
|
| 243 |
|
| 244 |
Joe Morgan |
| 245 |
Software Engineer |
| 246 |
Phaos Technology |
| 247 |
[email protected] |
| 248 |
http://www.phaos.com/ |