index.html 90 KB
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"><title>Using XKMS with PGP</title><style type="text/css">
code           { font-family: monospace; }

div.constraint,
div.issue,
div.note,
div.notice     { margin-left: 2em; }

dt.label       { display: run-in; }

li, p           { margin-top: 0.3em;
                 margin-bottom: 0.3em; }


div.assertion { border: 4px double gray; padding: 0.5em; margin-bottom: 0.2em; }
blockquote { background-color: #eeeeee; }
spectext { background-color: #eeeeee; }
.message { background-color: #d5dee3; }


pre { margin-left: 4em}

p.diff-chg,
li.diff-chg,
h1.diff-chg,
h2.diff-chg,
h3.diff-chg,
h4.diff-chg,
h5.diff-chg,
h6.diff-chg,
td.diff-chg,
tr.diff-chg     { background-color: #E47833; }
p.diff-del,
li.diff-del,
h1.diff-del,
h2.diff-del,
h3.diff-del,
h4.diff-del,
h5.diff-del,
h6.diff-del,
td.diff-del,
tr.diff-del     { background-color: red; text-decoration: line-through;}
p.diff-add,
p.diff-add,
h1.diff-add,
h2.diff-add,
h3.diff-add,
h4.diff-add,
h5.diff-add,
h6.diff-add,
td.diff-add,
tr.diff-add    { background-color: lime; }
table          { empty-cells: show; }


div.exampleInner pre { margin-left: 1em;
                       margin-top: 0em; margin-bottom: 0em}
div.exampleOuter {border: 4px double gray;
                  margin: 0em; padding: 0em}
div.exampleInner { background-color: #d5dee3;
                   border-top-width: 4px;
                   border-top-style: double;
                   border-top-color: #d3d3d3;
                   border-bottom-width: 4px;
                   border-bottom-style: double;
                   border-bottom-color: #d3d3d3;
                   padding: 4px; margin: 0em }
div.exampleWrapper { margin: 4px }
div.exampleHeader { font-weight: bold;
                    margin: 4px}
div.table,
div.figure	 {margin-top: 2em; 
		  margin-bottom: 2em;
		  text-align: center; }
</style><link rel="stylesheet" type="text/css" href="http://www.w3.org/StyleSheets/TR/W3C-WG-NOTE.css"></head><body>


  <div class="head"><p><a href="http://www.w3.org/"><img src="http://www.w3.org/Icons/w3c_home" alt="W3C" height="48" width="72"></a></p>
<h1>Using XKMS with PGP</h1>
<h2>W3C Working Group Note 19 December 2005</h2><dl><dt>This version:</dt><dd><a href="http://www.w3.org/TR/2005/NOTE-xkms-pgp-20051219/">http://www.w3.org/TR/2005/NOTE-xkms-pgp-20051219/</a></dd><dt>Latest version:</dt><dd><a href="http://www.w3.org/TR/xkms-pgp/">http://www.w3.org/TR/xkms-pgp/</a></dd><dt>Authors:</dt>   
      <dd>Tommy Lindberg, Markup Security</dd>
      <dd>José Kahan, W3C</dd>       
    </dl><p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a> ©2005 <a href="http://www.w3.org/"><acronym title="World Wide Web Consortium">W3C</acronym></a><sup>®</sup>(<a href="http://www.csail.mit.edu/"><acronym title="Massachusetts Institute of Technology">MIT</acronym></a>, <a href="http://www.ercim.org/"><acronym title="European Research Consortium for Informatics and Mathematics">ERCIM</acronym></a>, <a href="http://www.keio.ac.jp/">Keio</a>), All Rights Reserved. W3C <a href="http://www.w3.org/Consortium/Legal/ipr-notice#Legal_Disclaimer">liability</a>, <a href="http://www.w3.org/Consortium/Legal/ipr-notice#W3C_Trademarks">trademark</a> and <a href="http://www.w3.org/Consortium/Legal/copyright-documents">document use</a> rules apply.</p></div><hr><div>
<h2><a name="abstract">Abstract</a></h2>



<p>
The XML Key Management Specification (XKMS 2.0) [<a href="#XKMS">XKMS</a>] aims at providing a PKI independent interface
to key management. XKMS services comprise discovery and validation of
keys as well as support for certain aspects of the key life cycle
management, including registration, reissuance and revocation.</p>

<p>XKMS employs XML Signature [<a href="#XMLSIG">XMLSIG</a>] for the
purpose of providing message security in the form of authentication
and integrity. In addition, XKMS is based on the use of
the <code>&lt;ds:KeyInfo&gt;</code> element as a means of transporting key
information used as templates for the various operations it
specifies.</p>

<p>This technical note addresses some of the issues related to the use of XKMS in
conjunction with PGP [<a href="#PGP">PGP</a>].</p>

</div><div>
<h2><a name="status">Status of this Document</a></h2>


<p><em>This section describes the status of this document at the time of its
publication. Other documents may supersede this document. A list of current
W3C publications and the latest revision of this technical report can be
found in the <a href="http://www.w3.org/TR/" shape="rect">W3C technical
reports index</a> at http://www.w3.org/TR/.</em></p>

<p>This is the 19 December 2005 Working Group
Note for "Using XKMS with PGP". This document was developed by the <a href="http://www.w3.org/2001/XKMS/" shape="rect">XML Key Management
Working Group</a>.  It is being published as the XKMS Working Group
concludes, and has no normative status.
</p>

<p>This document is a Working Group Note made available by W3C for
discussion only. Publication of this Note by W3C does not imply
endorsement by W3C, including the Team and Membership. No W3C
resources were, are, or will be allocated to the issues addressed by
this W3C Working Group Note.</p>

<p>While the XKMS Working Group has completed its chartered work
items, we expect that the mailing list will remain active for some
time.  Please send comments about this document to <a href="mailto:www-xkms@w3.org" shape="rect">www-xkms@w3.org</a> (with
<a href="http://lists.w3.org/Archives/Public/www-xkms/" shape="rect">public archive</a>).</p>

<p>As of this publication, the Working Group does not expect this document to
become a W3C Recommendation, and therefore it has no associated <a href="http://www.w3.org/Consortium/Patent-Policy-20040205/" shape="rect">W3C
Patent Policy</a> licensing obligations. If this expectation changes, the
Working Group will have an opportunity to fulfill the associated patent
policy requirements with respect to a future draft.</p>

<p>This document was developed under no patent policy.</p>

<p><em>Publication as a Working Group Note does not imply endorsement by
the W3C Membership. This is a draft document and may be updated,
replaced or obsoleted by other documents at any time. It is
inappropriate to cite this document as other than work in
progress.</em></p>

</div>



<hr><div class="toc">
<h2><a name="shortcontents">Short Table of Contents</a></h2><p class="toc">1. <a href="#intro">Introduction</a><br>2. <a href="#S2">PGP Packet types for &lt;ds:PGPKeyPacket&gt;</a><br>3. <a href="#S2_3">Issues related to using ElGamal with XMLSIG and XKMS</a><br>4. <a href="#S4">XKMS with PGP usage scenarios</a><br>5. <a href="#S5">XKMS and implications of the PGP Design</a><br>6. <a href="#Ref">References</a><br>7. <a href="#Ack">Acknowledgments</a><br></p></div><hr><div class="toc">
<h2><a name="contents">Table of Contents</a></h2><p class="toc">1. <a href="#intro">Introduction</a><br>2. <a href="#S2">PGP Packet types for &lt;ds:PGPKeyPacket&gt;</a><br>3. <a href="#S2_3">Issues related to using ElGamal with XMLSIG and XKMS</a><br>    3.1 <a href="#S2_3_1">ElGamal syntax for &lt;ds:KeyValue&gt;</a><br>    3.2 <a href="#S2_3_2">ElGamal syntax for &lt;xkms:PrivateKey&gt;</a><br>4. <a href="#S4">XKMS with PGP usage scenarios</a><br>    4.1 <a href="#S4_1">Scenario 1: Locate Request, single PGPKeyPacket</a><br>    4.2 <a href="#S4_2">Scenario 2: Locate Request, multiple PGPKeyPackets</a><br>    4.3 <a href="#S4_3">Scenario 3: Locate Request, PGPData from PGPKeyID</a><br>    4.4 <a href="#S4_4">Scenario 4: Locate Request, KeyValue from PGPKeyPacket</a><br>    4.5 <a href="#S4_5">Scenario 5: Locate Request, KeyValue's from PGPKeyPacket with multiple sub-keys</a><br>    4.6 <a href="#S4_6">Scenario 6: Validate Request, single PGPKeyPacket</a><br>    4.7 <a href="#S4_7">Scenario 7: Validate Request, valid key</a><br>    4.8 <a href="#S4_8">Scenario 8: Validate Request, expired key</a><br>    4.9 <a href="#S4_9">Scenario 9: Validate Request, revoked key</a><br>    4.10 <a href="#S4_10">Scenario 10: Register Request</a><br>    4.11 <a href="#S4_11">Scenario 11: Reissue Request</a><br>    4.12 <a href="#S4_12">Scenario 12: Revoke Request</a><br>5. <a href="#S5">XKMS and implications of the PGP Design</a><br>    5.1 <a href="#S5_1">Trust model</a><br>    5.2 <a href="#S5_2">Registration of PGP Subkeys</a><br>    5.3 <a href="#S5_3">PGP Version 4 Signature Subpackets</a><br>6. <a href="#Ref">References</a><br>7. <a href="#Ack">Acknowledgments</a><br></p>
</div><hr><div class="body">
    <div class="div1">
      
<h2><a name="intro"></a>1. Introduction</h2>

<p>One of XKMS main objectives is to facilitate the use of XML
Signature [<a href="#XMLSIG">XMLSIG</a>] and XML Encryption [<a href="#XMLENC">XMLENC</a>] without mandating the use of any one
specific public key infrastructure (PKI). While PKI independent, XKMS
relies on vocabulary defined in XMLSIG for marking up artifacts
pertaining to PKIX/X.509, PGP and SPKI. This W3C technical note is
concerned with PGP artifacts and their usage in XKMS. </p>

<p>Section 4.4.5 of the XML Digital Signature [<a href="#XMLSIG">XMLSIG</a>] Specification defines the
<code>&lt;ds:PGPData&gt;</code> element for conveying information related to PGP
public key pairs and signatures on such keys. This Section has several
deficiencies that were clearly noticed during the XKMS
Interoperability tests [<a href="#XKMSCRIR">XKMSCRIR</a>, Issue 332-tl2]. Specifically, Section 4.4.5:</p>

 <ul>

<li>lacks specifics required for unambiguous interpretation of PGP
   packet types that are used in
   <code>ds:KeyInfo/ds:PGPData/ds:PGPKeyPacket</code>;</li>

<li>excludes packet types that are useful in the establishment of
trust in a key; and</li>

<li>does not provide PGP specific XMLSIG samples indicating the valid
content of a <code>&lt;ds:PGPKeyPacket&gt;</code>.</li> </ul>

<p>The objectives of this document are to:</p>

<ul>

<li>recommend exactly what packet types should be used in
<code>ds:KeyInfo/ds:PGPData/ds:PGPKeyPacket</code>;</li>

<li>recommend behavior in relation to the treatment of public
   keys pertaining to algorithms not supported by the XMLSIG
   vocabulary, specifically ElGamal;</li>

<li>provide XMLSIG samples and XKMS sample message exchanges that
include PGP artifacts; and</li>

<li>provide some usage scenarios involving XKMS and PGP to help
   understand the support for primitives and mechanisms provided by
   XKMS and its underpinning technologies.</li>

</ul>

<p>It is not our intention to speculate over, or try to determine how
   meaningful or suitable certain scenarios are for PGP - this note
   simply discusses the support of primititves and mechanisms provided
   by XKMS and its underpinning technologies.</p>

<p>We will only make reference to and distinguish between the
different versions of PGP documented in [<a href="#PGP">PGP</a>] when
required by the context.</p>

</div>

<div class="div1">

<h2><a name="S2"></a>2. PGP Packet types for <code>&lt;ds:PGPKeyPacket&gt;</code></h2>

[<a href="#XMLSIG">XMLSIG</a>, Section 4.4.5] states that a <code>&lt;ds:PGPKeyPacket&gt;</code>
element contains a Key Material Packet as defined in [<a href="#PGP">PGP</a>, Section 5.5]. However,
the text does not constrain the valid Key Material Packet types to those suitable for use within
a <code>&lt;ds:KeyInfo&gt;</code> element.  Specifically, among the packet types defined in
[<a href="#PGP">PGP</a>, Section 5.5] only Public Key Packets and Public Subkey Packets must be
used in a <code>&lt;ds:PGPKeyPacket&gt;</code> element.

<p>
Moreover, in order to be able to establish trust in a key, additional packet types are typically
required. These additional packet types are UserID packets
[<a href="#PGP">PGP</a>, 5.11 User ID Packet], Signature packets [<a href="#PGP">PGP</a>, 5.2.1.
Signature Types] and, for PGP version 4,
Signature Subpackets [<a href="#PGP">PGP</a>, 5.2.3.1 Signature Subpacket Specification].</p>

<p>Signature packet types are further constrained to:</p>

<ul>
<li>Generic certification of a User ID and Public Key packet (0x10).</li>
<li>Persona certification of a User ID and Public Key packet (0x11).</li>
<li>Casual certification of a User ID and Public Key packet (0x12).</li>
<li>Positive certification of a User ID and Public Key packet (0x13).</li>
<li>Subkey Binding Signature (0x18).</li>
<li>Signature directly on a key (0x1F).</li>
<li>Key revocation signature (0x20).</li>
<li>Subkey revocation signature (0x28).</li>
<li>Certification revocation signature (0x30).</li>
</ul>

<p>Consequently, we find that [<a href="#PGP">PGP</a>, Sections 10.1], entitled
Transferable Public Keys, gives better recommendations
than [<a href="#PGP">PGP</a>, Sections 5.5] on how to compose the
content of a <code>&lt;ds:PGPKeyPacket&gt;</code> element. All of these recommendations
can be applied straightforward, with the exception of the last Section
of  [<a href="#PGP">PGP</a>, Sections 10.1] which states that:</p>

<blockquote>
   "Transferable public key packet sequences may be concatenated to allow
    transferring multiple public keys in one operation."
</blockquote>

<p>This conflicts with the requirement stated in [<a href="#XMLSIG">XMLSIG</a>, Section 4.4] that multiple declarations
within <code>&lt;ds:KeyInfo&gt;</code> must refer to the same key and should therefore not be
followed.</p>

<p><em>N.B.: While we don't find the element name
<code>&lt;ds:PGPKeyPacket&gt;</code> optimally descriptive for its
intended purpose, it is not our intention to propose an alternative
name, nor is it our intention to introduce additional PGP specific
markup intended to carry additional PGP artifacts.</em></p>

<p>The following XML signature illustrates the use of a single
<code>&lt;ds:PGPKeyPacket&gt;</code> element carrying the signature
verification key:</p>

<blockquote>
<pre>

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;ds:SignedInfo&gt;
    &lt;ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /&gt;
    &lt;ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /&gt;
    &lt;ds:Reference URI="#object"&gt;
      &lt;ds:Transforms&gt;
        &lt;ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /&gt;
      &lt;/ds:Transforms&gt;
      &lt;ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /&gt;
      &lt;ds:DigestValue&gt;i4ZUxPo3KaS0HVln/lSVjphFwp4=&lt;/ds:DigestValue&gt;
    &lt;/ds:Reference&gt;
  &lt;/ds:SignedInfo&gt;
  &lt;ds:SignatureValue&gt;
    w0PGjKuTmwaIosNQL3mrzETp+EcM8CKWJAByhLuXf6P9kfOx2JjHLP6rGXKiEfpA
    kdgsFvWAVUUcae2aqSLlpRdj+pQGjKykujslBhdqhO7CsOkCzOKo3gkALjaZi70/
    WwStUiYLwufmlbsvY9cF/4g59BSbFu1yvWhwtASPFKU=
  &lt;/ds:SignatureValue&gt;
  &lt;ds:KeyInfo&gt;
    &lt;ds:PGPData&gt;
      &lt;ds:PGPKeyID&gt;
        O3owQUSlko4=
      &lt;/ds:PGPKeyID&gt;
      &lt;ds:PGPKeyPacket&gt;
	mI0EQx27fQMEAM3Hfx3yjzYol3SoE8PVl+CErHVPxDZJXtamrX52V7iVZQkvhoE0
	uW5T7VObmKtIbzBQxOQ9oCjhoEN8QG9p0jX25xyDEZH8MRJPZ5+GFb/mEhRoLp91
	MfP4cah7v6P8bXvk7UXcgKMh8zJlPxmOXkqaw+a7sGGxEDS4Q7nse0ZHABEBAAG0
	EWFsaWNlQGV4YW1wbGUuY29tiK4EEAMCACIFAkMi228JEDt6MEFEpZKOAhsDAhYC
	AhUCAgsCAhkBAgcBAAD5BwP+MFhUsd43DS1t2/iUZKURua34nrv0erZFn5fMyu0z
	WN+HemA7XOouJKwme5qAKAX36cXjHgqAALu7O5bT7I0/9n0Omv5x6O3FcvtFtbv5
	igO+Y3wxKEAuR45zmhhIIQgkWCtfDlFm0wc+yaWXgsEMRn9q1/ua6e8VS7/7S4QM
	qVaInAQQAwIAEAUCQyScTgkQAfTyJlFel/UAAONKA/0b/euhEaUw+eeVYcyrQa1d
	HTmWc8U53LqbuPMLZ59PkP1FiHcu5N5KD3xk/Xc14o8sP8BHd91TJnaM6sKxVEs1
	580RR81Wol5sjISV89uuXm09NVNqDBNqi+vemjB66NJGLjoviZVGDzgi5vV7wF5q
	rdbtSp38HtJte1FMQHeScriNBEMdu4ACBACu1wQ0llewBTewtZJvo4I8RZsvXjTO
	6wzotWhK+W10a/khxG7vBWymhMU5hXne/9O7vE7J7qT9j1tkdzNUQXGPOUb6b6kG
	GeicAXJ17qL0ActcSlnDWwA0P94PGBIpFowJUu0txOBdQHX3h/hOk+4PtWLXob6q
	hjlR+uS+a2AuaQARAQABiJwEGAMCABAFAkMi228JEDt6MEFEpZKOAAAN0gQAlgws
	XkSm2dBwCFaXMnHxdnCTLqZKCfCBd332w6G6S4tCoVlFW6MKxhwn2IyF8VgIyVl6
	bTjnrT0E78FlWW9JX3JZje6a4nhus1TqEx12LfIYyX//T/2gnbiic+FqigE3N91N
	0Hyixc2aGtAT7hCrMS+DTgvPHb2kLoR1+PMP/Fg=     
      &lt;/ds:PGPKeyPacket&gt;
    &lt;/ds:PGPData&gt;
  &lt;/ds:KeyInfo&gt;
  &lt;ds:Object Id="object"&gt;this is some text&lt;/ds:Object&gt;
&lt;/ds:Signature&gt;
</pre>
</blockquote>

<p>The following XML signature illustrates the use of two
<code>&lt;ds:PGPKeyPacket&gt;</code> elements. The first one carries the
signature verification key, while the second one holds the key that
certifies the signature verification key:</p>

<blockquote>
<pre>

&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;env:Envelope xmlns:env="http://example.com/envelope" Id="envelope"&gt;
  &lt;ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
    &lt;ds:SignedInfo&gt;
      &lt;ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /&gt;
      &lt;ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /&gt;
      &lt;ds:Reference URI="#envelope"&gt;
        &lt;ds:Transforms&gt;
          &lt;ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /&gt;
          &lt;ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" /&gt;
        &lt;/ds:Transforms&gt;
        &lt;ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /&gt;
        &lt;ds:DigestValue&gt;kszkAzzcRdmyOj9CF+rBzNCW2rk=&lt;/ds:DigestValue&gt;
      &lt;/ds:Reference&gt;
    &lt;/ds:SignedInfo&gt;
    &lt;ds:SignatureValue&gt;
      VpiEj708CwkWrq6OOka5NbdI6NJalkM/k9DlyNq6tox11wEkDR3pjyqenO+IC93e
      VSg5o8PjGBwEOyY/GyzeGle8kRECcs1ZL8IPGVltQJQV3xkCGSOANcMSAhGCei/m
      lMWEa7PUI47CUk6Hz+0t0UHzOYaedXVXsimAj8lyqDg=
    &lt;/ds:SignatureValue&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyID&gt;
          O3owQUSlko4=
        &lt;/ds:PGPKeyID&gt;
        &lt;ds:PGPKeyPacket&gt;
	  mI0EQx27fQMEAM3Hfx3yjzYol3SoE8PVl+CErHVPxDZJXtamrX52V7iVZQkvhoE0
	  uW5T7VObmKtIbzBQxOQ9oCjhoEN8QG9p0jX25xyDEZH8MRJPZ5+GFb/mEhRoLp91
	  WN+HemA7XOouJKwme5qAKAX36cXjHgqAALu7O5bT7I0/9n0Omv5x6O3FcvtFtbv5
	  igO+Y3wxKEAuR45zmhhIIQgkWCtfDlFm0wc+yaWXgsEMRn9q1/ua6e8VS7/7S4QM
	  qVaInAQQAwIAEAUCQyScTgkQAfTyJlFel/UAAONKA/0b/euhEaUw+eeVYcyrQa1d
	  HTmWc8U53LqbuPMLZ59PkP1FiHcu5N5KD3xk/Xc14o8sP8BHd91TJnaM6sKxVEs1
	  MfP4cah7v6P8bXvk7UXcgKMh8zJlPxmOXkqaw+a7sGGxEDS4Q7nse0ZHABEBAAG0
	  EWFsaWNlQGV4YW1wbGUuY29tiK4EEAMCACIFAkMi228JEDt6MEFEpZKOAhsDAhYC
	  AhUCAgsCAhkBAgcBAAD5BwP+MFhUsd43DS1t2/iUZKURua34nrv0erZFn5fMyu0z
	  580RR81Wol5sjISV89uuXm09NVNqDBNqi+vemjB66NJGLjoviZVGDzgi5vV7wF5q
	  rdbtSp38HtJte1FMQHeScriNBEMdu4ACBACu1wQ0llewBTewtZJvo4I8RZsvXjTO
	  6wzotWhK+W10a/khxG7vBWymhMU5hXne/9O7vE7J7qT9j1tkdzNUQXGPOUb6b6kG
	  GeicAXJ17qL0ActcSlnDWwA0P94PGBIpFowJUu0txOBdQHX3h/hOk+4PtWLXob6q
	  hjlR+uS+a2AuaQARAQABiJwEGAMCABAFAkMi228JEDt6MEFEpZKOAAAN0gQAlgws
	  XkSm2dBwCFaXMnHxdnCTLqZKCfCBd332w6G6S4tCoVlFW6MKxhwn2IyF8VgIyVl6
	  bTjnrT0E78FlWW9JX3JZje6a4nhus1TqEx12LfIYyX//T/2gnbiic+FqigE3N91N
	  0Hyixc2aGtAT7hCrMS+DTgvPHb2kLoR1+PMP/Fg=      
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyID&gt;
          AfTyJlFel/U=
        &lt;/ds:PGPKeyID&gt;
        &lt;ds:PGPKeyPacket&gt;
	  mI0EQx276AMEAObgi9iTkPANSS8Ntw/WwloeAlHsEsxMrNOFAp1QuX3Y320G/BIC
	  gKki1WMKcBuRkfz6TPIET396V8GZwLHQ8xUJlVn2lcq1lN9vfy24UwqC/rQuQAL+
	  KaCR5vakUNSt92sjZDuG+q5T6OfHMm5n+jBVBuVBcMDpnFPANaG/9ClvABEBAAG0
	  D2JvYkBleGFtcGxlLmNvbYiuBBADAgAiBQJDIttwCRAB9PImUV6X9QIbAwIWAgIV
	  AgILAgIZAQIHAQAAndUD/Am0fO3cnKf66IgPtRxar2jQ2hLy9u9kdHAQ+nlaMx8H
	  icnW56Xn5liMyPLkV47FEOQTUTiG1E0oNQRhpQGo2NWbBVSJPWXN0kkHGmtzV93M
	  W4tabN2mV7VIQTA6s7EHiM9+XQtS07b5vsHyv446CyjSrnlnA26+DsdZDR1e/n7L
	  iJwEEAMCABAFAkMknE4JEDt6MEFEpZKOAABhVAQAkLC6oGwFPWlIk0gJaTRgP+5k
	  VHYKC6pwu7NtfjArWn6xEpP0v3nkglMaK7PJWFc0R8tMpgqDuIs4Iry/dyQVoeg0
	  uxgASPL3T+mPAGHLOnVS75lrXeIPex/u6g2W/iwKJxFlRFxvMwO0THY+SVBNVzt8
	  Md9Ve6xcMhRWFaiAvBK4jQRDHbvrAgQAiI0YiXGT3QeItzuEXUWnU8t884mnRvbK
	  Wv8DWEI8qWxrByWTXk0YOyVJ65R7JEm+6oP1+sovPW1AP9mBUmdgT3L1sx3/fmIE
	  bmrFxV+fhhl20InEDFOiCFDsQw/grUcZ/nhOeZ0GIfwOODpNJXANwqcKNE47MvGq
	  0JxAgg/oxqEAEQEAAYicBBgDAgAQBQJDIttwCRAB9PImUV6X9QAA1PID/RaKylKM
	  3ypFVRBOY3SxEiuUhpN+5N8qnSl3k4n0+I5RsOS8JSrWgPElu7hx2zjRHJCtN1y6
	  /BUtcr5VHKjw8VUdlRDrpPsSdoFKjQoh4RidOwKRELAcT4RpITYp7EdPGSB6IQ1d
	  Uuxgw291wiJcIGwoxteo+MZuLH/jOb90zQCM
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
  &lt;/ds:Signature&gt;
&lt;/env:Envelope&gt;

</pre>
</blockquote>

</div>

<div class="div1">

<h2><a name="S2_3"></a>3. Issues related to using ElGamal with XMLSIG and XKMS</h2>

<p>RFC2440 [<a href="#PGP">PGP</a>] supports the asymmetric ciphers
RSA, DSA, and ElGamal. XML Signature, on the other hand, only defines
markup for carrying key values pertaining to the RSA and DSA algorithms.
</p>

<p>An XKMS service exposed to this incompatibility has little choice but to return
a general result code pair such as <code>ResultMajor</code>
<code>http://www.w3.org/2002/03/xkms#{Sender,Receiver}</code> and
<code>ResultMinor</code>
<code>http://www.w3.org/2002/03/xkms#Failure</code>.</p>

<p><em>N.B: Note that the inability to act on a request involving
an unsupported algorithm should ideally be backed up by the existence
of an XKMS <code>ResultMinorEnum</code> enumeration value such as
<code>http://www.w3.org/2002/03/xkms#UnsupportedAlgorithm</code>, however
such a code is not specified in the current XKMS 2.0 Specification.</em></p>

<p>While some usage scenarios may be satisfied by the XKMS service simply tunneling the
<code>&lt;ds:PGPKeyPacket&gt;</code>
elements containing an ElGamal key, this does not provide a complete solution.
In the following sub sections we suggest how full ElGamal support could be added to XMLSIG and XKMS
respectively. Note that the schema fragments deliberatly omit the definition of the namespaces for the
prefixes NS1 and NS2.</p>

<div class="div2">

<h3><a name="S2_3_1"></a>3.1 ElGamal syntax for <code>&lt;ds:KeyValue&gt;</code></h3>

<p>XMLSIG, and therefore XKMS, are limited to representing key values for RSA and DSA only.
As a result, an XKMS service cannot return a key value for a request involving a
<code>&lt;ds:PGPKeyPacket&gt;</code> that contains an ElGamal public key.</p>

<p>As an ElGamal public key (when in transit between PGP aware
entities) is defined by the values P(rime), G(enerator) and Y (Public), a
suitable definition of an ElGamal key value may be:</p>

<blockquote>
<pre>

  &lt;element name="ElGamalKeyValue" type="NS1:ElGamalKeyValueType"/&gt;
  &lt;complexType name="ElGamalKeyValueType"&gt;
     &lt;sequence&gt;
        &lt;element name="P" type="ds:CryptoBinary"/&gt;
        &lt;element name="Generator" type="ds:CryptoBinary"/&gt;
        &lt;element name="Public" type="ds:CryptoBinary"/&gt;
     &lt;/sequence&gt;
  &lt;/complexType&gt;

</pre>
</blockquote>

</div>

<div class="div2">

<h3><a name="S2_3_2"></a>3.2 ElGamal syntax for <code>&lt;xkms:PrivateKey&gt;</code></h3>

<p>XKMS supports service generation of key pairs pertaining to public key encryption algorithms. When
a service generates such a key pair, the private key parameters are returned to the client as encrypted
data in an <code>&lt;xkms:PrivateKey&gt;</code> element.</p>

<p>The only key pair syntax currently defined by the XKMS 2.0
specification is that for an <code>&lt;xkms:RSAKeyPair&gt;</code>.  We
propose the following definition for an ElGamal key pair:</p>

<blockquote>
<pre>

  &lt;element name="ElGamalKeyPair" type="NS2:ElGamalKeyPairType"/&gt;
  &lt;complexType name="ElGamalKeyPairType"&gt;
     &lt;sequence&gt;
        &lt;element name="P" type="ds:CryptoBinary"/&gt;
        &lt;element name="Generator" type="ds:CryptoBinary"/&gt;
        &lt;element name="Public" type="ds:CryptoBinary"/&gt;
        &lt;element name="X" type="ds:CryptoBinary"/&gt;        
     &lt;/sequence&gt;
  &lt;/complexType&gt;
  
</pre>
</blockquote>

<p>In the precedent definition, <code>P</code>,
<code>Generator</code>, and <code>Public</code> are as defined in Section
3.1; <code>X</code> is the private key.</p>

</div>
</div>


<div class="div1">

<h2><a name="S4"></a>4. XKMS with PGP usage scenarios</h2>

<p>This section provides selected usage scenarios involving XKMS and
PGP, accompanied by sample request/result messages.  The messages are
based on interactions between an XKMS Client, an XKMS Service, and a
PGP Key Server (see Figure 1).</p>


<div class="figure" id="Fig-1">

<p><img src="pgp.jpg" alt="Figure illustrating an XKMS Client, an XKMS Service and a PGP Key Server"></p>

<p>Figure 1: Interactions between an XKMS client, an XKMS service and a PGP Key Server</p>

</div>

<p>In order to conserve space, the messages are not signed unless
required by the XKMS specification.  A zip archive containing the
complete messages and related PGP keys is available for <a href="xkms-pgp-samples.zip">download</a>. The content of this
archive is also available online in a dedicated
<a href="samples/">samples directory</a></p>

<p>All messages pertain to synchronous exchanges. The keyholders, in
the scenarios, use keys pertaining to the RSA algorithm. The following
sub-sections describe the individual usage scenarios.</p>

<div class="div2">

<h3><a name="S4_1"></a>4.1 Scenario 1: Locate Request, single PGPKeyPacket</h3>

<p>Alice, who has PGP aware software, requests a PGP artifact for Carol expressing specific
interest in her signature key. By including the <code>&lt;xkms:RespondWith&gt;</code> value
<code>http://www.w3.org/2002/03/xkms#PGP</code>, Alice indicates that the XKMS service should return a single PGP
artifact.</p>

<blockquote>
<pre>
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:LocateRequest Id="I37cee20869ede2b91ef6d0fe8b408d48"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:RespondWith&gt;http://www.w3.org/2002/03/xkms#PGP&lt;/km:RespondWith&gt;
  &lt;km:QueryKeyBinding&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="carol@example.com" /&gt;
  &lt;/km:QueryKeyBinding&gt;
&lt;/km:LocateRequest&gt;

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:LocateResult Id="I243e8726eb46dc62d01467efa7da7792"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      ResultMajor="http://www.w3.org/2002/03/xkms#Success"
      RequestId="I37cee20869ede2b91ef6d0fe8b408d48"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:UnverifiedKeyBinding Id="I9175b3513f9a7baabcf87ed48ea63b93"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyID&gt;
          CE0HiNZPXl8=
        &lt;/ds:PGPKeyID&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQx3hFQMEAKMt018bl9evtYd+xCgKfdbeXqiOSLQcLBA//gp3otW9AZVC0Tdq
          py9S46fPtRuasGFaKhqnXwBtbnrdvCR3YWjkimqk32FuKtxnSBXi2yssp5yycRye
          iRPC8CBEyJeLDHxjIrpltQ2oJ6toQ5nIh9D7x9xr+BltIZ+5nVAgoWCLABEBAAG0
          EWNhcm9sQGV4YW1wbGUuY29tiK4EEAMCACIFAkMi23AJEAhNB4jWT15fAhsDAhYC
          AhUCAgsCAhkBAgcBAABp7AP/QoL/WVEpuxxSD/LJA3QjERnRjuYKS4L0/Ulb8gVa
          odMl3xsl100fpqF5ISUWaQZrUFPFSyG0781FZvmvcFlbomutCnNR2ugRg0rIjjib
          araXuxbdWDluNfNbwDkdQy9fhRz7/r7AudjpwFcoGfVjdPZ8graZ1kXZXvkZuPs8
          +RmInAQQAwIAEAUCQyScTgkQAfTyJlFel/UAAHyPBACwAYWGqzO8N/+zhJjEsdnu
          PoGRbiaS6v7IynAqAlUMz/c7+Z5qsLPFjHUaxvAc9QtTNfte3ql9THBpxDRxB3/v
          Y21E6kIK9qHIUW6+4AfKVNPcwqj/p1U8W5s0z92IQZarbYQC7hJExwvk1ig7ZQ6Y
          /AN7/VctgdqMPEFcVNwUFbiNBEMd4RgCBACTwYI/1LNewEamlSzmi29v5XLBjXHV
          erc++BHiS+LZG+SY4BIKISA8Qa9lWaOub+66EuVx6IAupdJCpyEBDcXccmnVnflH
          aweOQxTHHGpfD4ndEbR9KN8uS9wT5MIPBHCxTb9eR03qVZuYxABwLfXqehvOnzSZ
          H4IDI62beGcf3wARAQABiJwEGAMCABAFAkMi23AJEAhNB4jWT15fAAC5lgP+LKWX
          uBE2cpJPRY28aBPHlcIfe9nkDWWH1FYHsHoa2yi4aoqmXvWC2By2aVUE5CXFLTbP
          7grwpfqZ6OnpnRvPrzMXfsupi40UJ/EIbkpUKxiZ7jZjgdnKCBlIFBf2W1fYl3/K
          S9TN303faMJeljwTBpGUcqUoZSmAnNuGnTxYc5Y=
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="carol@example.com" /&gt;
  &lt;/km:UnverifiedKeyBinding&gt;
&lt;/km:LocateResult&gt;

</pre>
</blockquote>
</div>

<div class="div2">

<h3><a name="S4_2"></a>4.2 Scenario 2: Locate Request, multiple PGPKeyPackets</h3>

<p>Alice, who has PGP aware software, requests a PGP artifact for Carol expressing specific
interest in her signature key. By including the <code>&lt;xkms:RespondWith&gt;</code> value
<code>http://www.w3.org/2002/03/xkms#PGPWeb</code>, Alice indicates that she is prepared to receive
multiple <code>&lt;ds:PGPKeyPacket&gt;</code> elements in the response. As a result the XKMS service locates the artifacts pertaining
not only to Carol but also to each signer encountered.</p>

<blockquote>
<pre>

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:LocateRequest Id="I036c2399c5c14e2b64900a0213910220"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:RespondWith&gt;http://www.w3.org/2002/03/xkms#PGPWeb&lt;/km:RespondWith&gt;
  &lt;km:QueryKeyBinding&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="carol@example.com" /&gt;
  &lt;/km:QueryKeyBinding&gt;
&lt;/km:LocateRequest&gt;


&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:LocateResult Id="Ie51da438aa33361663d71d7e3072378d"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      ResultMajor="http://www.w3.org/2002/03/xkms#Success"
      RequestId="I036c2399c5c14e2b64900a0213910220"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:UnverifiedKeyBinding Id="I991d0862d0069079499d3d6a62cfdfb5"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyID&gt;
          CE0HiNZPXl8=
        &lt;/ds:PGPKeyID&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQx3hFQMEAKMt018bl9evtYd+xCgKfdbeXqiOSLQcLBA//gp3otW9AZVC0Tdq
          py9S46fPtRuasGFaKhqnXwBtbnrdvCR3YWjkimqk32FuKtxnSBXi2yssp5yycRye
          iRPC8CBEyJeLDHxjIrpltQ2oJ6toQ5nIh9D7x9xr+BltIZ+5nVAgoWCLABEBAAG0
          EWNhcm9sQGV4YW1wbGUuY29tiK4EEAMCACIFAkMi23AJEAhNB4jWT15fAhsDAhYC
          AhUCAgsCAhkBAgcBAABp7AP/QoL/WVEpuxxSD/LJA3QjERnRjuYKS4L0/Ulb8gVa
          odMl3xsl100fpqF5ISUWaQZrUFPFSyG0781FZvmvcFlbomutCnNR2ugRg0rIjjib
          araXuxbdWDluNfNbwDkdQy9fhRz7/r7AudjpwFcoGfVjdPZ8graZ1kXZXvkZuPs8
          +RmInAQQAwIAEAUCQyScTgkQAfTyJlFel/UAAHyPBACwAYWGqzO8N/+zhJjEsdnu
          PoGRbiaS6v7IynAqAlUMz/c7+Z5qsLPFjHUaxvAc9QtTNfte3ql9THBpxDRxB3/v
          Y21E6kIK9qHIUW6+4AfKVNPcwqj/p1U8W5s0z92IQZarbYQC7hJExwvk1ig7ZQ6Y
          /AN7/VctgdqMPEFcVNwUFbiNBEMd4RgCBACTwYI/1LNewEamlSzmi29v5XLBjXHV
          erc++BHiS+LZG+SY4BIKISA8Qa9lWaOub+66EuVx6IAupdJCpyEBDcXccmnVnflH
          aweOQxTHHGpfD4ndEbR9KN8uS9wT5MIPBHCxTb9eR03qVZuYxABwLfXqehvOnzSZ
          H4IDI62beGcf3wARAQABiJwEGAMCABAFAkMi23AJEAhNB4jWT15fAAC5lgP+LKWX
          uBE2cpJPRY28aBPHlcIfe9nkDWWH1FYHsHoa2yi4aoqmXvWC2By2aVUE5CXFLTbP
          7grwpfqZ6OnpnRvPrzMXfsupi40UJ/EIbkpUKxiZ7jZjgdnKCBlIFBf2W1fYl3/K
          S9TN303faMJeljwTBpGUcqUoZSmAnNuGnTxYc5Y=
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyID&gt;
          AfTyJlFel/U=
        &lt;/ds:PGPKeyID&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQx276AMEAObgi9iTkPANSS8Ntw/WwloeAlHsEsxMrNOFAp1QuX3Y320G/BIC
          gKki1WMKcBuRkfz6TPIET396V8GZwLHQ8xUJlVn2lcq1lN9vfy24UwqC/rQuQAL+
          KaCR5vakUNSt92sjZDuG+q5T6OfHMm5n+jBVBuVBcMDpnFPANaG/9ClvABEBAAG0
          D2JvYkBleGFtcGxlLmNvbYiuBBADAgAiBQJDIttwCRAB9PImUV6X9QIbAwIWAgIV
          AgILAgIZAQIHAQAAndUD/Am0fO3cnKf66IgPtRxar2jQ2hLy9u9kdHAQ+nlaMx8H
          icnW56Xn5liMyPLkV47FEOQTUTiG1E0oNQRhpQGo2NWbBVSJPWXN0kkHGmtzV93M
          W4tabN2mV7VIQTA6s7EHiM9+XQtS07b5vsHyv446CyjSrnlnA26+DsdZDR1e/n7L
          iJwEEAMCABAFAkMknE4JEDt6MEFEpZKOAABhVAQAkLC6oGwFPWlIk0gJaTRgP+5k
          VHYKC6pwu7NtfjArWn6xEpP0v3nkglMaK7PJWFc0R8tMpgqDuIs4Iry/dyQVoeg0
          uxgASPL3T+mPAGHLOnVS75lrXeIPex/u6g2W/iwKJxFlRFxvMwO0THY+SVBNVzt8
          Md9Ve6xcMhRWFaiAvBK4jQRDHbvrAgQAiI0YiXGT3QeItzuEXUWnU8t884mnRvbK
          Wv8DWEI8qWxrByWTXk0YOyVJ65R7JEm+6oP1+sovPW1AP9mBUmdgT3L1sx3/fmIE
          bmrFxV+fhhl20InEDFOiCFDsQw/grUcZ/nhOeZ0GIfwOODpNJXANwqcKNE47MvGq
          0JxAgg/oxqEAEQEAAYicBBgDAgAQBQJDIttwCRAB9PImUV6X9QAA1PID/RaKylKM
          3ypFVRBOY3SxEiuUhpN+5N8qnSl3k4n0+I5RsOS8JSrWgPElu7hx2zjRHJCtN1y6
          /BUtcr5VHKjw8VUdlRDrpPsSdoFKjQoh4RidOwKRELAcT4RpITYp7EdPGSB6IQ1d
          Uuxgw291wiJcIGwoxteo+MZuLH/jOb90zQCM
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyID&gt;
          O3owQUSlko4=
        &lt;/ds:PGPKeyID&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQx27fQMEAM3Hfx3yjzYol3SoE8PVl+CErHVPxDZJXtamrX52V7iVZQkvhoE0
          uW5T7VObmKtIbzBQxOQ9oCjhoEN8QG9p0jX25xyDEZH8MRJPZ5+GFb/mEhRoLp91
          MfP4cah7v6P8bXvk7UXcgKMh8zJlPxmOXkqaw+a7sGGxEDS4Q7nse0ZHABEBAAG0
          EWFsaWNlQGV4YW1wbGUuY29tiK4EEAMCACIFAkMi228JEDt6MEFEpZKOAhsDAhYC
          AhUCAgsCAhkBAgcBAAD5BwP+MFhUsd43DS1t2/iUZKURua34nrv0erZFn5fMyu0z
          WN+HemA7XOouJKwme5qAKAX36cXjHgqAALu7O5bT7I0/9n0Omv5x6O3FcvtFtbv5
          igO+Y3wxKEAuR45zmhhIIQgkWCtfDlFm0wc+yaWXgsEMRn9q1/ua6e8VS7/7S4QM
          qVaInAQQAwIAEAUCQyScTgkQAfTyJlFel/UAAONKA/0b/euhEaUw+eeVYcyrQa1d
          HTmWc8U53LqbuPMLZ59PkP1FiHcu5N5KD3xk/Xc14o8sP8BHd91TJnaM6sKxVEs1
          580RR81Wol5sjISV89uuXm09NVNqDBNqi+vemjB66NJGLjoviZVGDzgi5vV7wF5q
          rdbtSp38HtJte1FMQHeScriNBEMdu4ACBACu1wQ0llewBTewtZJvo4I8RZsvXjTO
          6wzotWhK+W10a/khxG7vBWymhMU5hXne/9O7vE7J7qT9j1tkdzNUQXGPOUb6b6kG
          GeicAXJ17qL0ActcSlnDWwA0P94PGBIpFowJUu0txOBdQHX3h/hOk+4PtWLXob6q
          hjlR+uS+a2AuaQARAQABiJwEGAMCABAFAkMi228JEDt6MEFEpZKOAAAN0gQAlgws
          XkSm2dBwCFaXMnHxdnCTLqZKCfCBd332w6G6S4tCoVlFW6MKxhwn2IyF8VgIyVl6
          bTjnrT0E78FlWW9JX3JZje6a4nhus1TqEx12LfIYyX//T/2gnbiic+FqigE3N91N
          0Hyixc2aGtAT7hCrMS+DTgvPHb2kLoR1+PMP/Fg=
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="carol@example.com" /&gt;
  &lt;/km:UnverifiedKeyBinding&gt;
&lt;/km:LocateResult&gt;

</pre>
</blockquote>
</div>

<div class="div2">

<h3><a name="S4_3"></a>4.3 Scenario 3: Locate Request, PGPData from PGPKeyID</h3>

<p>Carol, who has PGP aware software, requests a PGP artifact corresponding to the supplied
<code>&lt;ds:PGPKeyID&gt;</code>.</p>

<blockquote>
<pre>

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:LocateRequest Id="If1793cf45fc363c26d808441fc1e5ccf"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:RespondWith&gt;http://www.w3.org/2002/03/xkms#PGP&lt;/km:RespondWith&gt;
  &lt;km:QueryKeyBinding&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyID&gt;O3owQUSlko4==&lt;/ds:PGPKeyID&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="alice@example.com" /&gt;
  &lt;/km:QueryKeyBinding&gt;
&lt;/km:LocateRequest&gt;

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:LocateResult Id="I3cd58da0459a37079316d0dc5aa23cf7"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      ResultMajor="http://www.w3.org/2002/03/xkms#Success"
      RequestId="If1793cf45fc363c26d808441fc1e5ccf"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:UnverifiedKeyBinding Id="Ie2a1b8d382e12dcd3a6dd3baa75dc7d6"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyID&gt;
          O3owQUSlko4==
        &lt;/ds:PGPKeyID&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQx27fQMEAM3Hfx3yjzYol3SoE8PVl+CErHVPxDZJXtamrX52V7iVZQkvhoE0
          uW5T7VObmKtIbzBQxOQ9oCjhoEN8QG9p0jX25xyDEZH8MRJPZ5+GFb/mEhRoLp91
          MfP4cah7v6P8bXvk7UXcgKMh8zJlPxmOXkqaw+a7sGGxEDS4Q7nse0ZHABEBAAG0
          EWFsaWNlQGV4YW1wbGUuY29tiK4EEAMCACIFAkMi228JEDt6MEFEpZKOAhsDAhYC
          AhUCAgsCAhkBAgcBAAD5BwP+MFhUsd43DS1t2/iUZKURua34nrv0erZFn5fMyu0z
          WN+HemA7XOouJKwme5qAKAX36cXjHgqAALu7O5bT7I0/9n0Omv5x6O3FcvtFtbv5
          igO+Y3wxKEAuR45zmhhIIQgkWCtfDlFm0wc+yaWXgsEMRn9q1/ua6e8VS7/7S4QM
          qVa4jQRDHbuAAgQArtcENJZXsAU3sLWSb6OCPEWbL140zusM6LVoSvltdGv5IcRu
          7wVspoTFOYV53v/Tu7xOye6k/Y9bZHczVEFxjzlG+m+pBhnonAFyde6i9AHLXEpZ
          w1sAND/eDxgSKRaMCVLtLcTgXUB194f4TpPuD7Vi16G+qoY5UfrkvmtgLmkAEQEA
          AYicBBgDAgAQBQJDIttvCRA7ejBBRKWSjgAADdIEAJYMLF5EptnQcAhWlzJx8XZw
          ky6mSgnwgXd99sOhukuLQqFZRVujCsYcJ9iMhfFYCMlZem045609BO/BZVlvSV9y
          WY3umuJ4brNU6hMddi3yGMl//0/9oJ24onPhaooBNzfdTdB8osXNmhrQE+4QqzEv
          g04Lzx29pC6EdfjzD/xY
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="alice@example.com" /&gt;
  &lt;/km:UnverifiedKeyBinding&gt;
&lt;/km:LocateResult&gt;

</pre>
</blockquote>
</div>

<div class="div2">

<h3><a name="S4_4"></a>4.4 Scenario 4: Locate Request, KeyValue from PGPKeyPacket</h3>

<p>Bob, who does not have PGP aware software, is in possession of a PGP artifact 
containing a signature verification key purportedly belonging to Carol. In order to verify
a signature, Bob requests the XKMS service to extract and return the key value from the supplied
<code>&lt;ds:PGPKeyPacket&gt;</code>.
</p>

<blockquote>
<pre>

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:LocateRequest Id="I5ce64e4142923e31a48d15ca4117f276"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:RespondWith&gt;http://www.w3.org/2002/03/xkms#KeyValue&lt;/km:RespondWith&gt;
  &lt;km:QueryKeyBinding&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQx3hFQMEAKMt018bl9evtYd+xCgKfdbeXqiOSLQcLBA//gp3otW9AZVC0Tdq
          py9S46fPtRuasGFaKhqnXwBtbnrdvCR3YWjkimqk32FuKtxnSBXi2yssp5yycRye
          iRPC8CBEyJeLDHxjIrpltQ2oJ6toQ5nIh9D7x9xr+BltIZ+5nVAgoWCLABEBAAG0
          EWNhcm9sQGV4YW1wbGUuY29tiK4EEAMCACIFAkMi23AJEAhNB4jWT15fAhsDAhYC
          AhUCAgsCAhkBAgcBAABp7AP/QoL/WVEpuxxSD/LJA3QjERnRjuYKS4L0/Ulb8gVa
          odMl3xsl100fpqF5ISUWaQZrUFPFSyG0781FZvmvcFlbomutCnNR2ugRg0rIjjib
          araXuxbdWDluNfNbwDkdQy9fhRz7/r7AudjpwFcoGfVjdPZ8graZ1kXZXvkZuPs8
          +RmInAQQAwIAEAUCQyScTgkQAfTyJlFel/UAAHyPBACwAYWGqzO8N/+zhJjEsdnu
          PoGRbiaS6v7IynAqAlUMz/c7+Z5qsLPFjHUaxvAc9QtTNfte3ql9THBpxDRxB3/v
          Y21E6kIK9qHIUW6+4AfKVNPcwqj/p1U8W5s0z92IQZarbYQC7hJExwvk1ig7ZQ6Y
          /AN7/VctgdqMPEFcVNwUFbiNBEMd4RgCBACTwYI/1LNewEamlSzmi29v5XLBjXHV
          erc++BHiS+LZG+SY4BIKISA8Qa9lWaOub+66EuVx6IAupdJCpyEBDcXccmnVnflH
          aweOQxTHHGpfD4ndEbR9KN8uS9wT5MIPBHCxTb9eR03qVZuYxABwLfXqehvOnzSZ
          H4IDI62beGcf3wARAQABiJwEGAMCABAFAkMi23AJEAhNB4jWT15fAAC5lgP+LKWX
          uBE2cpJPRY28aBPHlcIfe9nkDWWH1FYHsHoa2yi4aoqmXvWC2By2aVUE5CXFLTbP
          7grwpfqZ6OnpnRvPrzMXfsupi40UJ/EIbkpUKxiZ7jZjgdnKCBlIFBf2W1fYl3/K
          S9TN303faMJeljwTBpGUcqUoZSmAnNuGnTxYc5Y=
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="carol@example.com"/&gt;
  &lt;/km:QueryKeyBinding&gt;
&lt;/km:LocateRequest&gt;

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:LocateResult Id="Ie12609974d0971bb8b4196fb7e2b5ed4"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      ResultMajor="http://www.w3.org/2002/03/xkms#Success"
      RequestId="I5ce64e4142923e31a48d15ca4117f276"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:UnverifiedKeyBinding Id="I7ba183f0962ce70464ff942a4f1611a0"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:KeyValue&gt;
        &lt;ds:RSAKeyValue&gt;
          &lt;ds:Modulus&gt;
            oy3TXxuX16+1h37EKAp91t5eqI5ItBwsED/+Cnei1b0BlULRN2qnL1Ljp8+1G5qw
            YVoqGqdfAG1uet28JHdhaOSKaqTfYW4q3GdIFeLbKyynnLJxHJ6JE8LwIETIl4sM
            fGMiumW1Dagnq2hDmciH0PvH3Gv4GW0hn7mdUCChYIs=
          &lt;/ds:Modulus&gt;
          &lt;ds:Exponent&gt;AQAB&lt;/ds:Exponent&gt;
        &lt;/ds:RSAKeyValue&gt;
      &lt;/ds:KeyValue&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="carol@example.com" /&gt;
  &lt;/km:UnverifiedKeyBinding&gt;
&lt;/km:LocateResult&gt;

</pre>
</blockquote>
</div>

<div class="div2">

<h3><a name="S4_5"></a>4.5 Scenario 5: Locate Request, KeyValue's from PGPKeyPacket with multiple sub-keys</h3>

<p>Bob, who does not have PGP aware software, wants to encrypt a
message for Mary. He sends a request to the XKMS service specifying
that he is only interested in the encryption keys. The XKMS service
extracts all encryption keys found in the supplied
<code>&lt;ds:PGPKeyPacket&gt;</code> and returns them to Bob.
</p>

<blockquote>
<pre>

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:LocateRequest Id="I685ffbf8e3fc626a9bcfe212a23dcffb"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:RespondWith&gt;http://www.w3.org/2002/03/xkms#KeyValue&lt;/km:RespondWith&gt;
  &lt;km:QueryKeyBinding&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQ2y6ewMEAMaP1BruldV2fU3ko3/mi5lH0qKGkrWgks+vB3ix3f+DRFynEOWs
          3AcR2G5XL26oGdnLbTPyjwsm2GinMN/ewMk1Xzrc1g9+UVTJsKDnu6/FftqHZXF9
          Gxlqmrhz2eB8VvCb+S9p5UXT+wWORqk0TByG1KPlYqlmV7gFY/TAyEYRABEBAAG0
          EG1hcnlAZXhhbXBsZS5jb22ItAQQAwIAKAUCQ2y6ewkQKfPVUfJrwL4FCQHhM4AC
          GwMCFgICFQICCwICGQECBwEAAAljA/9vVYhk7vc3NZEoVpFbG68+VeF2Gc5dyI4e
          Jw4F5grK0QKZgxgvjLQrg0QpY4jV3k5568cqMy7e2FSyvUGH6I6t6QWwp57UtlAg
          fCw3gWxErdzKWBLZlbUoc6fANR1iwKIXpaP/XtDkSIER8o62UenozPzynfh67b/Y
          trBzuyifrriNBENsunsCBADH5WZWP4aEApC5eXs09fFQpzpdXZAdvV9lZ6Qi7boB
          VUy1cxGWpX6UokAmIExzC0vNfBJtw2XLQl/9GmORvdrCiMVfd2Qp7NHIkCXldmLh
          PoVTMF5HgG3miVhfnNxL8n8ucxnmR1x3rvqVpx8BxwdDKfS60RoYWca8CRgbnf6p
          +wARAQABiJwEGAMCABAFAkNsunsJECnz1VHya8C+AAC4gAQAwdFvoW8skqyp9HhK
          2iWqkrJGMLZVo2Vy1yboDrsuhCQR7GqrovWxeI8S1luQhcxovzpPJ/8Jy8t+8Sge
          QMQFYt6O6evAC+7t0MXl5ELV1vxGwj0Pmp+rUpW5HUkWnjs60nfb5xvDCEeD23wN
          6ALzg+WxcEjcgi0H1emjFZhLFAy4jQRDbLp7AgQAutPKzojkAQSaP2FF4YrAmu9e
          +GtTf9/Xi3c8z9kj29ZvgpPSI3TBUaMgoSUff9tAW7zE74zkFFqR/676HqJlm0Lx
          qH54Gdr5ZGeHgGaZiKJzzYn8rEzkIzR+FQxY/p4pAgDd86gMfxPKQEWDcTN01x8F
          UiyRaCUgcmMIh4mQ/O0AEQEAAYicBBgDAgAQBQJDbLp7CRAp89VR8mvAvgAA+KQD
          /iLdcN6fhaHiLgzkhaK6AAB8nL5aqfKTIJ0RWy52GHHZNcT4n/VbpVQPlCZsZrIG
          Li7HmtFKZ4O+zMC6tqFi2kAlB6TBCX31xibKVzXLwW1aiLYIpX3sA9g7lae37JzE
          T0wbzgvYo+usOI4Its1fEbxusaOorndSzYl1foQuDIn0
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Encryption&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="mary@example.com"/&gt;
  &lt;/km:QueryKeyBinding&gt;
&lt;/km:LocateRequest&gt;

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:LocateResult Id="Ic605bddad3af8a0fb356eaef7544d2b4"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      ResultMajor="http://www.w3.org/2002/03/xkms#Success"
      RequestId="I685ffbf8e3fc626a9bcfe212a23dcffb"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:UnverifiedKeyBinding Id="I7d4884c87d224a72baa4700b5659bea8"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:KeyValue&gt;
        &lt;ds:RSAKeyValue&gt;
          &lt;ds:Modulus&gt;
            x+VmVj+GhAKQuXl7NPXxUKc6XV2QHb1fZWekIu26AVVMtXMRlqV+lKJAJiBMcwtL
            zXwSbcNly0Jf/Rpjkb3awojFX3dkKezRyJAl5XZi4T6FUzBeR4Bt5olYX5zcS/J/
            LnMZ5kdcd676lacfAccHQyn0utEaGFnGvAkYG53+qfs=
          &lt;/ds:Modulus&gt;
          &lt;ds:Exponent&gt;AQAB&lt;/ds:Exponent&gt;
        &lt;/ds:RSAKeyValue&gt;
      &lt;/ds:KeyValue&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Encryption&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="mary@example.com" /&gt;
  &lt;/km:UnverifiedKeyBinding&gt;
  &lt;km:UnverifiedKeyBinding Id="I9ebc2caa29cc89f26bde29ca25b7cfdc"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:KeyValue&gt;
        &lt;ds:RSAKeyValue&gt;
          &lt;ds:Modulus&gt;
            utPKzojkAQSaP2FF4YrAmu9e+GtTf9/Xi3c8z9kj29ZvgpPSI3TBUaMgoSUff9tA
            W7zE74zkFFqR/676HqJlm0LxqH54Gdr5ZGeHgGaZiKJzzYn8rEzkIzR+FQxY/p4p
            AgDd86gMfxPKQEWDcTN01x8FUiyRaCUgcmMIh4mQ/O0=
          &lt;/ds:Modulus&gt;
          &lt;ds:Exponent&gt;AQAB&lt;/ds:Exponent&gt;
        &lt;/ds:RSAKeyValue&gt;
      &lt;/ds:KeyValue&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Encryption&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="mary@example.com" /&gt;
  &lt;/km:UnverifiedKeyBinding&gt;
&lt;/km:LocateResult&gt;

</pre>
</blockquote>
</div>

<div class="div2">

<h3><a name="S4_6"></a>4.6 Scenario 6: Validate Request, single PGPKeyPacket</h3>

<p>As Scenario 1 but using a validation service.</p>

<blockquote>
<pre>

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:ValidateRequest Id="Ic2b052b9447fe334dc8699de849cf654"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:RespondWith&gt;http://www.w3.org/2002/03/xkms#PGP&lt;/km:RespondWith&gt;
  &lt;km:QueryKeyBinding&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="carol@example.com" /&gt;
  &lt;/km:QueryKeyBinding&gt;
&lt;/km:ValidateRequest&gt;

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:ValidateResult Id="Ie5958e8537bc970d9725d0ac7e54a7ed"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      ResultMajor="http://www.w3.org/2002/03/xkms#Success"
      RequestId="Ic2b052b9447fe334dc8699de849cf654"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:KeyBinding Id="I6d21f0cc0075eba86876a1d0886e8013"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyID&gt;
          CE0HiNZPXl8=
        &lt;/ds:PGPKeyID&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQx3hFQMEAKMt018bl9evtYd+xCgKfdbeXqiOSLQcLBA//gp3otW9AZVC0Tdq
          py9S46fPtRuasGFaKhqnXwBtbnrdvCR3YWjkimqk32FuKtxnSBXi2yssp5yycRye
          iRPC8CBEyJeLDHxjIrpltQ2oJ6toQ5nIh9D7x9xr+BltIZ+5nVAgoWCLABEBAAG0
          EWNhcm9sQGV4YW1wbGUuY29tiK4EEAMCACIFAkMi23AJEAhNB4jWT15fAhsDAhYC
          AhUCAgsCAhkBAgcBAABp7AP/QoL/WVEpuxxSD/LJA3QjERnRjuYKS4L0/Ulb8gVa
          odMl3xsl100fpqF5ISUWaQZrUFPFSyG0781FZvmvcFlbomutCnNR2ugRg0rIjjib
          araXuxbdWDluNfNbwDkdQy9fhRz7/r7AudjpwFcoGfVjdPZ8graZ1kXZXvkZuPs8
          +RmInAQQAwIAEAUCQyScTgkQAfTyJlFel/UAAHyPBACwAYWGqzO8N/+zhJjEsdnu
          PoGRbiaS6v7IynAqAlUMz/c7+Z5qsLPFjHUaxvAc9QtTNfte3ql9THBpxDRxB3/v
          Y21E6kIK9qHIUW6+4AfKVNPcwqj/p1U8W5s0z92IQZarbYQC7hJExwvk1ig7ZQ6Y
          /AN7/VctgdqMPEFcVNwUFbiNBEMd4RgCBACTwYI/1LNewEamlSzmi29v5XLBjXHV
          erc++BHiS+LZG+SY4BIKISA8Qa9lWaOub+66EuVx6IAupdJCpyEBDcXccmnVnflH
          aweOQxTHHGpfD4ndEbR9KN8uS9wT5MIPBHCxTb9eR03qVZuYxABwLfXqehvOnzSZ
          H4IDI62beGcf3wARAQABiJwEGAMCABAFAkMi23AJEAhNB4jWT15fAAC5lgP+LKWX
          uBE2cpJPRY28aBPHlcIfe9nkDWWH1FYHsHoa2yi4aoqmXvWC2By2aVUE5CXFLTbP
          7grwpfqZ6OnpnRvPrzMXfsupi40UJ/EIbkpUKxiZ7jZjgdnKCBlIFBf2W1fYl3/K
          S9TN303faMJeljwTBpGUcqUoZSmAnNuGnTxYc5Y=
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="carol@example.com" /&gt;
    &lt;km:ValidityInterval NotBefore="2005-09-06T18:33:57Z" /&gt;
    &lt;km:Status StatusValue="http://www.w3.org/2002/03/xkms#Valid"&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:ValidReason&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#ValidityInterval&lt;/km:ValidReason&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#RevocationStatus&lt;/km:ValidReason&gt;
    &lt;/km:Status&gt;
  &lt;/km:KeyBinding&gt;
&lt;/km:ValidateResult&gt;

</pre>
</blockquote>
</div>

<div class="div2">

<h3><a name="S4_7"></a>4.7 Scenario 7: Validate Request, valid key</h3>

<p>Bob, who cannot parse PGP artifacts, wants to verify the signature over data he has received
from Alice and requests validation of an attached <code>&lt;ds:PGPKeyPacket&gt;</code> containing the
verification key. The service finds the key to be valid but leaves the establishment of trust to Bob.</p>

<blockquote>
<pre>

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:ValidateRequest Id="I1e3a8142f0fd3a3acd6f9c0c29337b92"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:RespondWith&gt;http://www.w3.org/2002/03/xkms#KeyValue&lt;/km:RespondWith&gt;
  &lt;km:QueryKeyBinding&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQx27fQMEAM3Hfx3yjzYol3SoE8PVl+CErHVPxDZJXtamrX52V7iVZQkvhoE0
          uW5T7VObmKtIbzBQxOQ9oCjhoEN8QG9p0jX25xyDEZH8MRJPZ5+GFb/mEhRoLp91
          MfP4cah7v6P8bXvk7UXcgKMh8zJlPxmOXkqaw+a7sGGxEDS4Q7nse0ZHABEBAAG0
          EWFsaWNlQGV4YW1wbGUuY29tiK4EEAMCACIFAkMi228JEDt6MEFEpZKOAhsDAhYC
          AhUCAgsCAhkBAgcBAAD5BwP+MFhUsd43DS1t2/iUZKURua34nrv0erZFn5fMyu0z
          WN+HemA7XOouJKwme5qAKAX36cXjHgqAALu7O5bT7I0/9n0Omv5x6O3FcvtFtbv5
          igO+Y3wxKEAuR45zmhhIIQgkWCtfDlFm0wc+yaWXgsEMRn9q1/ua6e8VS7/7S4QM
          qVaInAQQAwIAEAUCQyScTgkQAfTyJlFel/UAAONKA/0b/euhEaUw+eeVYcyrQa1d
          HTmWc8U53LqbuPMLZ59PkP1FiHcu5N5KD3xk/Xc14o8sP8BHd91TJnaM6sKxVEs1
          580RR81Wol5sjISV89uuXm09NVNqDBNqi+vemjB66NJGLjoviZVGDzgi5vV7wF5q
          rdbtSp38HtJte1FMQHeScriNBEMdu4ACBACu1wQ0llewBTewtZJvo4I8RZsvXjTO
          6wzotWhK+W10a/khxG7vBWymhMU5hXne/9O7vE7J7qT9j1tkdzNUQXGPOUb6b6kG
          GeicAXJ17qL0ActcSlnDWwA0P94PGBIpFowJUu0txOBdQHX3h/hOk+4PtWLXob6q
          hjlR+uS+a2AuaQARAQABiJwEGAMCABAFAkMi228JEDt6MEFEpZKOAAAN0gQAlgws
          XkSm2dBwCFaXMnHxdnCTLqZKCfCBd332w6G6S4tCoVlFW6MKxhwn2IyF8VgIyVl6
          bTjnrT0E78FlWW9JX3JZje6a4nhus1TqEx12LfIYyX//T/2gnbiic+FqigE3N91N
          0Hyixc2aGtAT7hCrMS+DTgvPHb2kLoR1+PMP/Fg=
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="alice@example.com"/&gt;
  &lt;/km:QueryKeyBinding&gt;
&lt;/km:ValidateRequest&gt;

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:ValidateResult Id="I42706750705eedc4de8e3ec3a0f14fe2"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      ResultMajor="http://www.w3.org/2002/03/xkms#Success"
      RequestId="I1e3a8142f0fd3a3acd6f9c0c29337b92"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:KeyBinding Id="I72407105ecdfe20078e2f8ad8ca7c2a7"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:KeyValue&gt;
        &lt;ds:RSAKeyValue&gt;
          &lt;ds:Modulus&gt;
            zcd/HfKPNiiXdKgTw9WX4ISsdU/ENkle1qatfnZXuJVlCS+GgTS5blPtU5uYq0hvMFDE5D2g
            KOGgQ3xAb2nSNfbnHIMRkfwxEk9nn4YVv+YSFGgun3Ux8/hxqHu/o/xte+TtRdyAoyHzMmU/
            GY5eSprD5ruwYbEQNLhDuex7Rkc=
          &lt;/ds:Modulus&gt;
          &lt;ds:Exponent&gt;AQAB&lt;/ds:Exponent&gt;
        &lt;/ds:RSAKeyValue&gt;
      &lt;/ds:KeyValue&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="alice@example.com" /&gt;
    &lt;km:ValidityInterval NotBefore="2005-09-10T13:11:11Z" /&gt;
    &lt;km:Status StatusValue="http://www.w3.org/2002/03/xkms#Valid"&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:ValidReason&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#ValidityInterval&lt;/km:ValidReason&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#RevocationStatus&lt;/km:ValidReason&gt;
    &lt;/km:Status&gt;
  &lt;/km:KeyBinding&gt;
&lt;/km:ValidateResult&gt;

</pre>
</blockquote>
</div>

<div class="div2">

<h3><a name="S4_8"></a>4.8 Scenario 8: Validate Request, expired key</h3>

<p>Bob, who cannot parse PGP artifacts, wants to verify the signature over data he has received
from Eric and requests validation of an attached <code>&lt;ds:PGPKeyPacket&gt;</code> containing the verification key.  The
service detects that the key in the <code>&lt;ds:PGPKeyPacket&gt;</code> has expired and returns an invalid status.</p>

<blockquote>
<pre>

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:ValidateRequest Id="If57f175826e53e60dc3b056c05f063f0"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:RespondWith&gt;http://www.w3.org/2002/03/xkms#KeyValue&lt;/km:RespondWith&gt;
  &lt;km:QueryKeyBinding&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQx3iSgMEAN45SS8CxySV3ODsAylz+o+/PR3zG59lIl1qnli92SuNAamfgg+K
          pGTr90su+FMi7nLGK0mJcHkx0umtL6uLtqHLQFOasixS70FXcGA6kyzFXmkOjRhI
          8pYlQQHZifZEAGxk0XD+O93vqjoTA7aF4D1HnS0gG5c+fEFCuMfacvhFABEBAAG0
          EGVyaWNAZXhhbXBsZS5jb22ItAQQAwIAKAUCQyKiqAkQE4Od9xugLMAFCQAnjQAC
          GwMCFgICFQICCwICGQECBwEAAMqVA/9asnYizHnouI1GlKtYKAJ7Q1O7W+CmQB8v
          oKfglT1hk/MrCqMNVa3v8nfCFTD5ElrYCuAs3ZERT8crfgwg3ltHYTQfWmzkKHzV
          MzV0MgHkRHfWwcEVOMzYTazHv8UD8aC3cpfOPJJr8D64T5gCLbIOdimjJZO+UKTe
          vbvs/7IjeLiNBEMd4k0CBADK+f1DzRnKAsHtGXSO6POBOM9jYT1ujboPk/cKFN9Z
          OjQ24TTuVKE1i24N905WZRpKqCy3En6wElOI7Ssii+Fcat0xbW8XuNQcu9IUsHdz
          aoLFNEc0nmNcW3eos/VrF9yKfMV6pty0ppAYIZkdNji6fETQbSZy3Ew/YpTlm0B8
          9wARAQABiJwEGAMCABAFAkMioqgJEBODnfcboCzAAADezQP9H5o2xmlbDuPHo20K
          O4TWYVLEeqg2GEDSOINKeaYd2pwW6Aq9PUzJsVzq2sQ7+fjlD52Gf05P//EwhT9E
          aKoxQFHA5mthySOiIcHK2EufJbRi8piRd78CJXOgeArPMTUjITTCY1Ho9+v9uW4S
          ONqM5UGEcXQrIz07bjgp0DjiFBQ=
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="eric@example.com"/&gt;
  &lt;/km:QueryKeyBinding&gt;
&lt;/km:ValidateRequest&gt;

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:ValidateResult Id="I875f9f33c6f4043b17ee5a1536e4dcb3"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      ResultMajor="http://www.w3.org/2002/03/xkms#Success"
      RequestId="If57f175826e53e60dc3b056c05f063f0"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:KeyBinding Id="I550b1c7e35dda183a9484755c60b7060"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:KeyValue&gt;
        &lt;ds:RSAKeyValue&gt;
          &lt;ds:Modulus&gt;
            3jlJLwLHJJXc4OwDKXP6j789HfMbn2UiXWqeWL3ZK40BqZ+CD4qkZOv3Sy74UyLucsYrSYlw
            eTHS6a0vq4u2octAU5qyLFLvQVdwYDqTLMVeaQ6NGEjyliVBAdmJ9kQAbGTRcP473e+qOhMD
            toXgPUedLSAblz58QUK4x9py+EU=
          &lt;/ds:Modulus&gt;
          &lt;ds:Exponent&gt;AQAB&lt;/ds:Exponent&gt;
        &lt;/ds:RSAKeyValue&gt;
      &lt;/ds:KeyValue&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="eric@example.com" /&gt;
    &lt;km:ValidityInterval NotBefore="2005-09-10T09:08:56Z" NotOnOrAfter="2005-10-06T18:39:06Z"/&gt;
    &lt;km:Status StatusValue="http://www.w3.org/2002/03/xkms#Invalid"&gt;
      &lt;km:InvalidReason&gt;http://www.w3.org/2002/03/xkms#ValidityInterval&lt;/km:InvalidReason&gt;
    &lt;/km:Status&gt;
  &lt;/km:KeyBinding&gt;
&lt;/km:ValidateResult&gt;

</pre>
</blockquote>
</div>

<div class="div2">

<h3><a name="S4_9"></a>4.9 Scenario 9: Validate Request, revoked key</h3>

<p>Prior to verifying a signature on data that he has received from Ralph, Bob, who cannot parse PGP
artifacts, requests validation of an attached <code>&lt;ds:PGPKeyPacket&gt;</code>, containing the verification key.  The
service detects a PGP revocation signature in the <code>&lt;ds:PGPKeyPacket&gt;</code> and returns an invalid status.</p>

<blockquote>
<pre>

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:ValidateRequest Id="If26885c2515dd40c47cb339c437f4444"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:RespondWith&gt;http://www.w3.org/2002/03/xkms#KeyValue&lt;/km:RespondWith&gt;
  &lt;km:QueryKeyBinding&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQx3mGQMEANzTnHv+1yclF86wt6TH+M+gu/X6c6krqZ8IVBVlANbaCM9fidm+
          vH7V2bRtBT0YvyLmPGjtnHXuf6oe8MyB/0nGJF2bJjKijGb6QYeqGrfnC0bG/CP9
          tBl5SL/44LqzVeHOv61kd75Fk3uPXFWgSM1es08JZCw7nW+A9K7O9UoZABEBAAGI
          nAQgAwIAEAUCQ0VL+QkQwPAnINkyJCIAAMlhBACRk6FTUDgtlst18PfmdSMqh4i4
          pGnVM6cZbCJ3DlQ5uYn7JPm88W+Gh8tpsTXOs2bdpAJeqW5EfP0X80L6LUhn9oJo
          IVhH6Qoupfd5iaA/CeHsL5t9K/1Q0HhCKb2nSiTbU36Quy5Idv2VjtvZl1GzcGCs
          s2XQgJlg5FgyTG3qn7QRcmFscGhAZXhhbXBsZS5jb22IrgQQAwIAIgUCQyLbcQkQ
          wPAnINkyJCICGwMCFgICFQICCwICGQECBwEAALw7A/9jEfJMax396YdbP1uycRgy
          0bPUq9uBBWY6JC6vCIe3jwwSO1VWD4hNJa1Nnkx41HtDTS9OC0+7Kfl/QPSMCj1k
          DpMPCKpGZCIQAIX5gRrdYugo5AbJan4AFkLfI4i/04bp7fUBD9U5/L+8sjeRettW
          SNlBdkEZG01MTKniZT6JZriNBEMd5hwCBACSmpGmRuChmcNeBP6n8fm3vaPTOCPB
          cZEJ9EyxAW0DkKmfbg9T1/PwQjR1em3u2MHGfwKwLE0S/h4nW5UOhtupmiZSI5T2
          /kS02wHyRZpiWp2ML4MumrR+EFOUbfLgtz7Df2T69HnzX0obf1FYo2RzVV7kgn5m
          ReRlPN1bxZYyjwARAQABiJwEGAMCABAFAkMi23EJEMDwJyDZMiQiAAB+hgP7BK7o
          Zp7K0Mi1rEx48lyQBSgecjVwVFhTP7zjaR24bhYZUj2UsDKsvKLTG0prv9F2SsIe
          O/oh62HM5NJvrx8fsOAoClv1ZgPD5HQMCBgh3dQSZAys7kPV3C5voTFB9/4GOt2q
          ERFwgZvb+mrf5GnB9VzoPAFwYpKWW2eD9anCyg4=
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="ralph@example.com"/&gt;
  &lt;/km:QueryKeyBinding&gt;
&lt;/km:ValidateRequest&gt;

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:ValidateResult Id="I18a313fff5bc23205175af9b3cfda8d1"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      ResultMajor="http://www.w3.org/2002/03/xkms#Success"
      RequestId="If26885c2515dd40c47cb339c437f4444"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:KeyBinding Id="I4370ce8fdac2808863c2e04ba62d90ff"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:KeyValue&gt;
        &lt;ds:RSAKeyValue&gt;
          &lt;ds:Modulus&gt;
            3NOce/7XJyUXzrC3pMf4z6C79fpzqSupnwhUFWUA1toIz1+J2b68ftXZtG0FPRi/IuY8aO2c
            de5/qh7wzIH/ScYkXZsmMqKMZvpBh6oat+cLRsb8I/20GXlIv/jgurNV4c6/rWR3vkWTe49c
            VaBIzV6zTwlkLDudb4D0rs71Shk=
          &lt;/ds:Modulus&gt;
          &lt;ds:Exponent&gt;AQAB&lt;/ds:Exponent&gt;
        &lt;/ds:RSAKeyValue&gt;
      &lt;/ds:KeyValue&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="ralph@example.com" /&gt;
    &lt;km:ValidityInterval NotBefore="2005-09-10T13:10:13Z" /&gt;
    &lt;km:Status StatusValue="http://www.w3.org/2002/03/xkms#Invalid"&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:ValidReason&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#ValidityInterval&lt;/km:ValidReason&gt;
      &lt;km:InvalidReason&gt;http://www.w3.org/2002/03/xkms#RevocationStatus&lt;/km:InvalidReason&gt;
    &lt;/km:Status&gt;
  &lt;/km:KeyBinding&gt;
&lt;/km:ValidateResult&gt;

</pre>
</blockquote>
</div>

<div class="div2">

<h3><a name="S4_10"></a>4.10 Scenario 10: Register Request</h3>

<p>Fred registers a service generated key pair and binds it to a PGP artifact. He authenticates the
request with a key derived from a shared secret ("secret") established out of band with the service
and mapped to the <code>&lt;ds:KeyName&gt;</code> Fred. As the service generates the key pair, it can produce
the self-signed PGP artfifact.</p>

<blockquote>
<pre>

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:RegisterRequest Id="I67897b275c03c80c5c151a53a8eee3a2"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:RespondWith&gt;http://www.w3.org/2002/03/xkms#PGP&lt;/km:RespondWith&gt;
  &lt;km:PrototypeKeyBinding Id="Ie7e32519839a45e597b6f3646ead1ceb"&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="fred@example.com" /&gt;
    &lt;km:RevocationCodeIdentifier&gt;TD4zyGKCIHCJgKk4i+BUN1HFXWE=&lt;/km:RevocationCodeIdentifier&gt;
  &lt;/km:PrototypeKeyBinding&gt;
  &lt;km:Authentication&gt;
    &lt;km:KeyBindingAuthentication&gt;
      &lt;ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
        &lt;ds:SignedInfo&gt;
          &lt;ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/&gt;
          &lt;ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1"/&gt;
          &lt;ds:Reference URI="#Ie7e32519839a45e597b6f3646ead1ceb"&gt;
            &lt;ds:Transforms&gt;
              &lt;ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/&gt;
            &lt;/ds:Transforms&gt;
            &lt;ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/&gt;
            &lt;ds:DigestValue&gt;+Ncjqg7RCB2TFL81x1ZDWKjV0ho=&lt;/ds:DigestValue&gt;
          &lt;/ds:Reference&gt;
        &lt;/ds:SignedInfo&gt;
        &lt;ds:SignatureValue&gt;zBevtq27XnPrKGi5oTUGgYBADU4=&lt;/ds:SignatureValue&gt;
        &lt;ds:KeyInfo&gt;
          &lt;ds:KeyName&gt;Fred&lt;/ds:KeyName&gt;
        &lt;/ds:KeyInfo&gt;          
      &lt;/ds:Signature&gt;
    &lt;/km:KeyBindingAuthentication&gt;
  &lt;/km:Authentication&gt;
&lt;/km:RegisterRequest&gt;

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:RegisterResult Id="Ic5371b5883be851299d8fd866522332a"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      ResultMajor="http://www.w3.org/2002/03/xkms#Success"
      RequestId="I67897b275c03c80c5c151a53a8eee3a2"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:KeyBinding Id="Iba2c84b82f8c657beac108bc9fa4babd"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyID&gt;4GblxTJDnUM=&lt;/ds:PGPKeyID&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQ2kkDwMEAKlCG2jQa/nnO9CZEqXsc9l1OcmSjR4SvvJ0PjbZiAzy5Ur3+X27
          Fus+mzW9IGfV8zRAcMRv3bx415kodr1zPAFeg/HRwazMjpthUTcTeWogplRyhZBt
          jHaGhgjIBPtSzf9Lfa/RQ/xnduehFM/3Vffj/3nqQEOzGngLBAWZy8n9ABEBAAG0
          EGZyZWRAZXhhbXBsZS5jb22ItAQQAwIAKAUCQ2kkEQkQ4GblxTJDnUMFCQHhM4AC
          GwMCFgICFQICCwICGQECBwEAAMaOBAChYHFVA0m1iKwRo/S+JOfwggC/klfeCktU
          LeG0L/066xJyU/zSUI9eXIPjfGNDBEtJpxP86Mp1f0Ur/LpypkVLZGuqEx+vZxIo
          tYZEsZvaGZtukzfNOhsAvXbpnygv8fdx7QvnPvqWIWWkgI0gDPb2LP+dxbeKiUzW
          UFMX14dbJw==
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="fred@example.com" /&gt;
    &lt;km:Status StatusValue="http://www.w3.org/2002/03/xkms#Valid"&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:ValidReason&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#RevocationStatus&lt;/km:ValidReason&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#ValidityInterval&lt;/km:ValidReason&gt;
    &lt;/km:Status&gt;
  &lt;/km:KeyBinding&gt;
  &lt;km:PrivateKey&gt;
    &lt;enc:EncryptedData Type="http://www.w3.org/2001/04/xmlenc#Content" MimeType="text/xml"
        xmlns:enc="http://www.w3.org/2001/04/xmlenc#"&gt;
      &lt;enc:EncryptionMethod Algorithm="http://www.w3.org/2001/04/xmlenc#tripledes-cbc"/&gt;
      &lt;enc:CipherData&gt;
        &lt;enc:CipherValue&gt;
          WnG2zcwN4R05y/vzbwRMmQ3olF6IYdjq7elzHtd9aeRaXXdycHhz8HQAN+l9doYv
          v45eUU+5YdERMubv3xBkdGTCAIeoPHfz69qF9UHZ0sDOAMX3Q6niIPZ4YS0yyw1w
          CwyjMXldi1+dDfNBHXw+0Nu68ucuJg1XOoWAaGpqO4svMA1ALB76A+tLUrSQh+ov
          fZrMqg6gE5x5dOo7/cPqObhLxgtLhLl0xaMy6Utst7xY6xibrQlp0i13B2o9YeIJ
          bOp3zbtjTjN9CGVgYSPXtEDqREJwzHyN6EzAU2qbKdVlMiWFN1BsptJOqXVRtjnp
          zFx+aZLi8GML2iUxHGFSg/6mvDy3w9PKyNiXtCkP9sreJ2ClBSMmlXjUgxNry8aB
          77WuNSi+XdHzMzFc57UmZH4skneVZexG0IEVw83/o2tcjWT7OMMIWnGC+ibvFM8x
          Dua0BYS3cwVrF3lXm7ShEY5U0uRxZg11nHb3NHCSkhO2/53yFC08jEzoHjIh5R1k
          5GprbFfcpZJcfAqvzCzfTFp53vj/FsuIfmb+RIpy2i66JnOA/GZssLlkT6PcsbDS
          k6S9tJF/nxRarMyzlTEN2WKrOU9F1sm3+jj2eq81AjwyCDSyYzMke+pVNQwPH79y
          8VAXiEoohuKiP5DN2PWvgTz7rRDz0sFo+z9odClr6jBsOsUVAorJ7PEDGJB4eIR+
          YTKGa6DyhECFm1Z0RT/frQylosATcrKZAjI7LzKgrNOKFFqcRfm3FO4lmHMYD2Ni
          G0dYwrETI3npwjvQ0lubU2ALFfOeiWMku7uGo9nKoY57gK0BHa+MaGc79VAHeZNi
          2DPsdjCsdmgeSi23DFwU8fBJf5KRB6BoUrelHiJq3YeHWMmImU/SL/+qLlHfmvTF
          nKhUeLAxsxkeZXSwpMLX7CbHDfdfPHM+2KlBW5A05Ljb/ngj9hLnXKWayERigx4h
          FyIu/WJTfqBYOdDS86GcxDozHXeGX9aQAHuV0Nu1XJnGpIC/G5Bnjk4is3Keb6bu
          WsPtVm/OonShjhCUKD/cIMoUH23sYZ4bb+Lihd6TeuXH3jePze7wmA7LG80ujpDq
          4bqMUv287VXIGUeu6yo4E1wkQl3nrnjY0Qi0FKU2LiYqhkLaj372ukUNEMb+rL40
          99aNF8bjkBPuqiPMdNep+RtB80dKNgoc8/gegg/B9Cb367ySuXB1zrmQ8XSH72b8
          k5LpgE17e9m1A4FdTfzdMcXOryzeGn54DgPViC+Ql2lk/U1sDhXm6jOHa612Npqn
          EZhogUkXtrcZl/ftbmvp5YDucTUpnLSRS/LAmRsGB/TIt8Bpd0It0w4b2IB288dR
          ZEHXRDmL74HOx4OrDd3SOpOmpoLjD6c1nYD0JnED5o2l/XAHd+zfMQ952A/1CLOj
          lnwLUdAO4jFkh32m0BfcVXmvqz1TPS2qec79QyxkvOPENAQPW68k7zV6trcGQ+f3
          qfmjlKNumYpR0jd/D2ZIC8wT6UX9p56neO8Co3sL8Zr3gOpJ3mRDOxIi5RpBrpxR
          NZWxeOMPUzEIZZw0lShCwHUfHzvbvMylVigG6JQ+Pm0MTZyUH/Nj2CBFswqpG6tn
          3Th9ROdp/NWSeHr3eehKI6tTBPwj+4o0PdwyLBk9PVyVAiI1ksgrCA==
        &lt;/enc:CipherValue&gt;
      &lt;/enc:CipherData&gt;
    &lt;/enc:EncryptedData&gt;
  &lt;/km:PrivateKey&gt;
&lt;/km:RegisterResult&gt;

</pre>
</blockquote>
</div>

<div class="div2">

<h3><a name="S4_11"></a>4.11 Scenario 11: Reissue Request</h3>

<p>Harriet has previously registered a service generated key pair and
bound the public-key to an X.509 certificate.  She later elects to become a PGP
user and decides to create a PGP binding for the same public-key. She
includes the original X.509 certificate in the key binding
specification and provides proof of possession in the usual way.  She
authenticates the request with a key derived from a shared secret ("secret")
established out of band with the service and mapped to the
<code>&lt;ds:KeyName&gt;</code> Harriet.  The service returns the self
signed PGP artifact and its key id.
</p>

<blockquote>
<pre>
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:ReissueRequest Id="I69fe4f812ae299fa05f6e87ae1d9077a"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:RespondWith&gt;http://www.w3.org/2002/03/xkms#PGP&lt;/km:RespondWith&gt;
  &lt;km:ReissueKeyBinding Id="I5fa9baf8285f0b15bdb1eaa171fa806c"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:X509Data&gt;
        &lt;ds:X509Certificate&gt;
          MIICmTCCAgKgAwIBAgICAM8wDQYJKoZIhvcNAQEFBQAwQzELMAkGA1UEBhMCSUUx
          DzANBgNVBAgTBkR1YmxpbjEjMCEGA1UEAxMaUlNBIFRlc3QgQ0EgLSBObyBMaWFi
          aWxpdHkwHhcNMDUxMTAzMjIyMjA3WhcNMDYxMTAzMjIyMjA3WjBCMQswCQYDVQQG
          EwJJRTEVMBMGA1UEChMMRXhhbXBsZSBDb3JwMRwwGgYDVQQDFBNoYXJyaWV0QGV4
          YW1wbGUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQClo6apLQBcPLgP
          llH/85pFshxzbBVA/JzDo1pNNOp1RYwDsoN2g82JphcU5ASh+U9uz+SJsqAilyp1
          OoDIx4pn6opykZjqC3vUBbSaSh03kgmcc11aTu9/hyI7MgAiB8w1r1UaOcNgjB/q
          pYdXKJoz5JsGx/xnjgW+urk6V3VvUQIDAQABo4GcMIGZMB0GA1UdDgQWBBSIh1DA
          VFzNxDq6RpGjwgL15cTr2TBrBgNVHSMEZDBigBTW+VLknCxzznGFMlyAZlR8KIKh
          WqFHpEUwQzELMAkGA1UEBhMCSUUxDzANBgNVBAgTBkR1YmxpbjEjMCEGA1UEAxMa
          UlNBIFRlc3QgQ0EgLSBObyBMaWFiaWxpdHmCAWQwCwYDVR0PBAQDAgSwMA0GCSqG
          SIb3DQEBBQUAA4GBAB8m/FPlRPnb6CSHHDlW8dVfDefHjDhBpI4BBPEpAgG197mz
          Yui8P8UUzE03HH99mh2en31FnQlbkUOZ0I46CmmkGGH/O8vRCjrTjrHe39d3pCpk
          EYUmB1Ss3MWl1uJMn27OW7MR2MR1+z0vDXzaR9SniuThs8TgxL3rDmK1MH7k
        &lt;/ds:X509Certificate&gt;
      &lt;/ds:X509Data&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Encryption&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="harriet@example.com" /&gt;
    &lt;km:ValidityInterval NotOnOrAfter="2006-11-03T22:22:07Z"/&gt;
    &lt;km:Status StatusValue="http://www.w3.org/2002/03/xkms#Valid"/&gt;
  &lt;/km:ReissueKeyBinding&gt;
  &lt;km:Authentication&gt;
    &lt;km:KeyBindingAuthentication&gt;
      &lt;ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
        &lt;ds:SignedInfo&gt;
          &lt;ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/&gt;
          &lt;ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#hmac-sha1"/&gt;
          &lt;ds:Reference URI="#I5fa9baf8285f0b15bdb1eaa171fa806c"&gt;
            &lt;ds:Transforms&gt;
              &lt;ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/&gt;
            &lt;/ds:Transforms&gt;
            &lt;ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/&gt;
            &lt;ds:DigestValue&gt;TWpEy32jjPbFv804v/7ton10Iew=&lt;/ds:DigestValue&gt;
          &lt;/ds:Reference&gt;
        &lt;/ds:SignedInfo&gt;
        &lt;ds:SignatureValue&gt;XY2JJ4aGbVMqI+ZM4JM4ytrCB3k=&lt;/ds:SignatureValue&gt;
        &lt;ds:KeyInfo&gt;
          &lt;ds:KeyName&gt;Harriet&lt;/ds:KeyName&gt;
        &lt;/ds:KeyInfo&gt;
      &lt;/ds:Signature&gt;
    &lt;/km:KeyBindingAuthentication&gt;
  &lt;/km:Authentication&gt;
  &lt;km:ProofOfPossession&gt;
    &lt;ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
      &lt;ds:SignedInfo&gt;
        &lt;ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/&gt;
        &lt;ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/&gt;
        &lt;ds:Reference URI="#I5fa9baf8285f0b15bdb1eaa171fa806c"&gt;
          &lt;ds:Transforms&gt;
            &lt;ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/&gt;
          &lt;/ds:Transforms&gt;
          &lt;ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/&gt;
          &lt;ds:DigestValue&gt;TWpEy32jjPbFv804v/7ton10Iew=&lt;/ds:DigestValue&gt;
        &lt;/ds:Reference&gt;
      &lt;/ds:SignedInfo&gt;
      &lt;ds:SignatureValue&gt;
        gF74WHXnuAQGpeRWkI/V6gPqPRp/DAq4sDzHyrPuuUIxnUZonAmGoqYLaNWJmWoB
        P9454V/6V31CFOBG/lhJovnyjR8o4Y2uJN3IylVf2OZ3wpYvE2hQwz+3UzcOMR8g
        eQrCMLlhYsWCTfRxkuOxK4IxZ5rq8q/51NlLXo17/aI=
      &lt;/ds:SignatureValue&gt;
    &lt;/ds:Signature&gt;
  &lt;/km:ProofOfPossession&gt;
&lt;/km:ReissueRequest&gt;

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:ReissueResult Id="Iabd8ad7a072661f7e2b785a5b7fb08fe"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      ResultMajor="http://www.w3.org/2002/03/xkms#Success"
      RequestId="I69fe4f812ae299fa05f6e87ae1d9077a"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:KeyBinding Id="Ie3d0af3ee5a502447dacf4d760ad4f06"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyID&gt;KW0ZZuAeGHU=&lt;/ds:PGPKeyID&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQ2qNjwEEAKWjpqktAFw8uA+WUf/zmkWyHHNsFUD8nMOjWk006nVFjAOyg3aD
          zYmmFxTkBKH5T27P5ImyoCKXKnU6gMjHimfqinKRmOoLe9QFtJpKHTeSCZxzXVpO
          73+HIjsyACIHzDWvVRo5w2CMH+qlh1comjPkmwbH/GeOBb66uTpXdW9RABEBAAG0
          E2hhcnJpZXRAZXhhbXBsZS5jb22ItAQQAQIAKAUCQ2qY3gkQKW0ZZuAeGHUFCQHh
          M4ACGwMCFgICFQICCwICGQECBwEAABuLA/wIwdkl1K58crsycBpUmLbTjPRTq2LB
          8XJV/BqLE2SKNs+aGOxOh2aMRTtY5X3LUO/GH+AR0cKZCqLgCnZhd5fUyWo7VmWa
          bfXgoroCG4NNzcrif9a5XQr9RNgVggqvwndC15A0pw063/GorlZ6bmc9WZpu2s/w
          sOKH+MpqfgOG4Q==
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Encryption&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="harriet@example.com" /&gt;
    &lt;km:Status StatusValue="http://www.w3.org/2002/03/xkms#Valid"&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:ValidReason&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#RevocationStatus&lt;/km:ValidReason&gt;
      &lt;km:ValidReason&gt;http://www.w3.org/2002/03/xkms#ValidityInterval&lt;/km:ValidReason&gt;
    &lt;/km:Status&gt;
  &lt;/km:KeyBinding&gt;
&lt;/km:ReissueResult&gt;

</pre>
</blockquote>
</div>

<div class="div2">

<h3><a name="S4_12"></a>4.12 Scenario 12: Revoke Request</h3>

<p>Ralph suspects that his key has been compromised and decides to
revoke it. He specifies the key to be revoked in a
<code>&lt;ds:PGPKeyPacket&gt;</code> element and authenticates the
request with his private key.  The key pair was originally generated
by the service, so the service has access to the key required to
create a PGP revocation signature and attach it to the returned
<code>&lt;ds:PGPKeyPacket&gt;</code>.  Subsequent requests for Ralph's key will return a
<code>&lt;ds:PGPKeyPacket&gt;</code> containing the revocation signature.</p>

<blockquote>
<pre>

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:RevokeRequest Id="If9e8a8edaffd88f33baedc731ed6b685"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:RespondWith&gt;http://www.w3.org/2002/03/xkms#PGP&lt;/km:RespondWith&gt;
  &lt;km:RevokeKeyBinding Id="Ic233ba888219078bc6b6dd787236bca0"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQx3mGQMEANzTnHv+1yclF86wt6TH+M+gu/X6c6krqZ8IVBVlANbaCM9fidm+
          vH7V2bRtBT0YvyLmPGjtnHXuf6oe8MyB/0nGJF2bJjKijGb6QYeqGrfnC0bG/CP9
          tBl5SL/44LqzVeHOv61kd75Fk3uPXFWgSM1es08JZCw7nW+A9K7O9UoZABEBAAG0
          EXJhbHBoQGV4YW1wbGUuY29tiK4EEAMCACIFAkMi23EJEMDwJyDZMiQiAhsDAhYC
          AhUCAgsCAhkBAgcBAAC8OwP/YxHyTGsd/emHWz9bsnEYMtGz1KvbgQVmOiQurwiH
          t48MEjtVVg+ITSWtTZ5MeNR7Q00vTgtPuyn5f0D0jAo9ZA6TDwiqRmQiEACF+YEa
          3WLoKOQGyWp+ABZC3yOIv9OG6e31AQ/VOfy/vLI3kXrbVkjZQXZBGRtNTEyp4mU+
          iWa4jQRDHeYcAgQAkpqRpkbgoZnDXgT+p/H5t72j0zgjwXGRCfRMsQFtA5Cpn24P
          U9fz8EI0dXpt7tjBxn8CsCxNEv4eJ1uVDobbqZomUiOU9v5EtNsB8kWaYlqdjC+D
          Lpq0fhBTlG3y4Lc+w39k+vR5819KG39RWKNkc1Ve5IJ+ZkXkZTzdW8WWMo8AEQEA
          AYicBBgDAgAQBQJDIttxCRDA8Ccg2TIkIgAAfoYD+wSu6GaeytDItaxMePJckAUo
          HnI1cFRYUz+842kduG4WGVI9lLAyrLyi0xtKa7/RdkrCHjv6IethzOTSb68fH7Dg
          KApb9WYDw+R0DAgYId3UEmQMrO5D1dwub6ExQff+BjrdqhERcIGb2/pq3+RpwfVc
          6DwBcGKSlltng/WpwsoO
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:Status StatusValue="http://www.w3.org/2002/03/xkms#Invalid"/&gt;
  &lt;/km:RevokeKeyBinding&gt;
  &lt;km:Authentication&gt;
    &lt;km:KeyBindingAuthentication&gt;
      &lt;ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
        &lt;ds:SignedInfo&gt;
          &lt;ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/&gt;
          &lt;ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/&gt;
          &lt;ds:Reference URI="#Ic233ba888219078bc6b6dd787236bca0"&gt;
            &lt;ds:Transforms&gt;
              &lt;ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/&gt;
            &lt;/ds:Transforms&gt;
            &lt;ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/&gt;
            &lt;ds:DigestValue&gt;6kp+yCsOOlFYM9xHw7dA43FOMck=&lt;/ds:DigestValue&gt;
          &lt;/ds:Reference&gt;
        &lt;/ds:SignedInfo&gt;
        &lt;ds:SignatureValue&gt;
          CrSwO9Mg1aFB1bXkYbZlrVABjzC6NP0RydVWY8LdO4Kb7wGEuDtb8SO1SSPb0q0k
          oxJZIqMtLdPEH/mBKPKe1RTBRSo1ymL0TNb0If8k5U4FixMXM18a3NHV/ceocSyM
          3qWOVcurL5axME+oitFs31ZRkOiAJ8krTwt/mCotojE=
        &lt;/ds:SignatureValue&gt;
      &lt;/ds:Signature&gt;
    &lt;/km:KeyBindingAuthentication&gt;
  &lt;/km:Authentication&gt;
&lt;/km:RevokeRequest&gt;

&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;km:RevokeResult Id="I20aa98d2cdcf457afaf748fc32afd1ff"
      Service="http://markupsecurity.com:4080/xkms/service/soap12"
      ResultMajor="http://www.w3.org/2002/03/xkms#Success"
      RequestId="If9e8a8edaffd88f33baedc731ed6b685"
      xmlns:km="http://www.w3.org/2002/03/xkms#"
      xmlns:ds="http://www.w3.org/2000/09/xmldsig#"&gt;
  &lt;km:KeyBinding Id="Id949cafdb5da0d9c10ce3492babd0af0"&gt;
    &lt;ds:KeyInfo&gt;
      &lt;ds:PGPData&gt;
        &lt;ds:PGPKeyPacket&gt;
          mI0EQx3mGQMEANzTnHv+1yclF86wt6TH+M+gu/X6c6krqZ8IVBVlANbaCM9fidm+
          vH7V2bRtBT0YvyLmPGjtnHXuf6oe8MyB/0nGJF2bJjKijGb6QYeqGrfnC0bG/CP9
          tBl5SL/44LqzVeHOv61kd75Fk3uPXFWgSM1es08JZCw7nW+A9K7O9UoZABEBAAGI
          nAQgAwIAEAUCQ0VL+QkQwPAnINkyJCIAAMlhBACRk6FTUDgtlst18PfmdSMqh4i4
          pGnVM6cZbCJ3DlQ5uYn7JPm88W+Gh8tpsTXOs2bdpAJeqW5EfP0X80L6LUhn9oJo
          IVhH6Qoupfd5iaA/CeHsL5t9K/1Q0HhCKb2nSiTbU36Quy5Idv2VjtvZl1GzcGCs
          s2XQgJlg5FgyTG3qn7QRcmFscGhAZXhhbXBsZS5jb22IrgQQAwIAIgUCQyLbcQkQ
          wPAnINkyJCICGwMCFgICFQICCwICGQECBwEAALw7A/9jEfJMax396YdbP1uycRgy
          0bPUq9uBBWY6JC6vCIe3jwwSO1VWD4hNJa1Nnkx41HtDTS9OC0+7Kfl/QPSMCj1k
          DpMPCKpGZCIQAIX5gRrdYugo5AbJan4AFkLfI4i/04bp7fUBD9U5/L+8sjeRettW
          SNlBdkEZG01MTKniZT6JZriNBEMd5hwCBACSmpGmRuChmcNeBP6n8fm3vaPTOCPB
          cZEJ9EyxAW0DkKmfbg9T1/PwQjR1em3u2MHGfwKwLE0S/h4nW5UOhtupmiZSI5T2
          /kS02wHyRZpiWp2ML4MumrR+EFOUbfLgtz7Df2T69HnzX0obf1FYo2RzVV7kgn5m
          ReRlPN1bxZYyjwARAQABiJwEGAMCABAFAkMi23EJEMDwJyDZMiQiAAB+hgP7BK7o
          Zp7K0Mi1rEx48lyQBSgecjVwVFhTP7zjaR24bhYZUj2UsDKsvKLTG0prv9F2SsIe
          O/oh62HM5NJvrx8fsOAoClv1ZgPD5HQMCBgh3dQSZAys7kPV3C5voTFB9/4GOt2q
          ERFwgZvb+mrf5GnB9VzoPAFwYpKWW2eD9anCyg4=
        &lt;/ds:PGPKeyPacket&gt;
      &lt;/ds:PGPData&gt;
    &lt;/ds:KeyInfo&gt;
    &lt;km:KeyUsage&gt;http://www.w3.org/2002/03/xkms#Signature&lt;/km:KeyUsage&gt;
    &lt;km:UseKeyWith Application="urn:ietf:rfc:2440" Identifier="ralph@example.com" /&gt;
    &lt;km:Status StatusValue="http://www.w3.org/2002/03/xkms#Invalid"&gt;
      &lt;km:InvalidReason&gt;http://www.w3.org/2002/03/xkms#RevocationStatus&lt;/km:InvalidReason&gt;
    &lt;/km:Status&gt;
  &lt;/km:KeyBinding&gt;
&lt;/km:RevokeResult&gt;

</pre>
</blockquote>
</div>

</div>


<div class="div1">

<h2><a name="S5"></a>5. XKMS and implications of the PGP Design</h2>

<p>This section discusses some properties of the PGP design that has implications on its use with XKMS.
We cover issues pertaining to trust model, registration of PGP Subkeys and PGP Version 4 Signature
Subpackets.</p>

<p>An interoperable solution to the problems described in this section
is left open to future version of the XKMS Specification. Our
intention is to describe the limitations we have found while using
XKMS with PGP and give some ideas towards possible solutions.</p>

<div class="div2">

<h3><a name="S5_1"></a>5.1 Trust model</h3>

<p>XKMS defines a <code>StatusType</code> schema type for the purpose
of expressing a key's binding status and reasons for which a key has a
particular status.  XKMS distinguishes between three values for
binding status, namely:</p>

<ul>
<li><code>http://www.w3.org/2002/03/xkms#Valid</code></li>
<li><code>http://www.w3.org/2002/03/xkms#Invalid</code></li>
<li><code>http://www.w3.org/2002/03/xkms#Indeterminate</code></li>
</ul>

<p>Reason codes are defined for:</p>

<ul>
<li><code>http://www.w3.org/2002/03/xkms#IssuerTrust</code></li>
<li><code>http://www.w3.org/2002/03/xkms#RevocationStatus</code></li>
<li><code>http://www.w3.org/2002/03/xkms#ValidityInterval</code></li>
<li><code>http://www.w3.org/2002/03/xkms#Signature</code></li>
</ul>

<p>Section 5.1.8 of the XKMS specification provides a table that shows how these values relate to a
hierarchical trust model.  The following table illustrates the same relationships for PGP:</p>

<div class="figure" id="Table-1">

<table cellspacing="0" cellpadding="4" border="1">
  <tbody>
    <tr>
      <th valign="top" rowspan="2" colspan="1">Reason 
        <code>anyURI</code> Type (prefixed with
        http://www.w3.org/2002/03/xkms#)</th>

      <th valign="top" rowspan="2" colspan="1">Description</th>
      <th valign="top" colspan="2" rowspan="1">PGP Equivalent</th>
    </tr>
    <tr>
      <th valign="top" class="ID" rowspan="1" colspan="1">Valid</th>
      <th valign="top" class="ID" rowspan="1" colspan="1">Invalid</th>
    </tr>

    <tr>
      <td valign="top" align="left" rowspan="1" colspan="1">IssuerTrust</td>
      <td valign="top" align="left" rowspan="1" colspan="1">The issuer of the information on which
        the key binding is based is considered to be trustworthy by the XKMS
        service</td>
      <td valign="top" align="left" rowspan="1" colspan="1">See below</td>
      <td valign="top" align="left" rowspan="1" colspan="1">See below</td>
    </tr>
    <tr>

      <td valign="top" align="left" rowspan="1" colspan="1">RevocationStatus</td>
      <td valign="top" align="left" rowspan="1" colspan="1">The XKMS service has affirmatively
        verified the status of the key binding with an authoritative
      source</td>
      <td valign="top" align="left" rowspan="1" colspan="1">The key is not revoked</td>
      <td valign="top" align="left" rowspan="1" colspan="1">The key is revoked</td>
    </tr>
    <tr>

      <td valign="top" align="left" rowspan="1" colspan="1">ValidityInterval</td>
      <td valign="top" align="left" rowspan="1" colspan="1">The requested time instant was within the validity interval of the key binding</td>
      <td valign="top" align="left" rowspan="1" colspan="1">The key was valid at the
        requested time instant</td>
      <td valign="top" align="left" rowspan="1" colspan="1">The requested time instant was before or
        after the key validity interval</td>
    </tr>
    <tr>
      <td valign="top" align="left" rowspan="1" colspan="1">Signature</td>

      <td valign="top" align="left" rowspan="1" colspan="1">Signature on signed data provided by the
        client in the &lt;Keyinfo&gt; element was
        successfully verified.</td>
      <td valign="top" align="left" rowspan="1" colspan="1">Self Signature verified</td>
      <td valign="top" align="left" rowspan="1" colspan="1">Self Signature verification failed</td>
    </tr>
  </tbody>
</table>

</div>


<p>In the case of PGP, which uses a non-hierarchical model, the
<code>http://www.w3.org/2002/03/xkms#IssuerTrust</code> reason code
implies that the service has knowledge about a client's trust
relationships. A service that does not have knowledge about a client's
trust relationships SHOULD NOT give reason code
<code>http://www.w3.org/2002/03/xkms#IssuerTrust</code> for status
values <code>http://www.w3.org/2002/03/xkms#Valid</code>, or
<code>http://www.w3.org/2002/03/xkms#Invalid</code>.  While XKMS does
not directly support communication of this trust information from the
client to the service, it could be achieved out of band or through an
XKMS message extension. The design of such an XKMS message extension
is beyond the scope of this note.</p>

</div>

<div class="div2">

<h3><a name="S5_2"></a>5.2 Registration of PGP Subkeys</h3>

<p>
In PGP, it is not uncommon to bind a single user id to one master key
and multiple subkeys.  The master key is typically a signature key
while the subkeys can be either signature, encryption or, algorithm
allowing, mixed purpose keys. However, as the XKMS schema allows only
a single <code>&lt;xkms:PrototypeKeyBinding&gt;</code> element, XKMS is
limited to registration of a single key pair per request.  It cannot
therefore support the simultaneous registration of one master key and
one or more subkeys.</p>

<p>
For both client and service generated key pairs, this could be
mitigated through a service agreement or service policy that would
specify the number of subkeys to generate along with their purpose. In
the case of a service generated key pair, a masterkey-subkey(s)
collection could be returned as encrypted data in an <code>&lt;xkms:PrivateKey&gt;</code>
element.
</p>

</div>

<div class="div2">

<h3><a name="S5_3"></a>5.3 PGP Version 4 Signature Subpackets</h3>

<p>PGP defines a Version 4 Signature Packet Format [<a href="#PGP">PGP</a>, Section 5.2.3. Version 4 Signature Packet Format]
that provides for the inclusion of Signature Subpackets [<a href="#PGP">PGP</a>, Section 5.2.3.1. Signature Subpacket
Specification].  A Signature Subpacket is intended to communicate
additional information about a keyholder and her key pair and MAY be
cryptographically bound to the keyholders key pair.  Additionally, a
Signature Subpacket has a criticality indicator (bit 7 of the
Signature Subpacket Type) which affects the PGP end entity software.
The complete set of Signature Subpackets are:</p>

<ul>
<li>signature creation time (2)</li>
<li>signature expiration time (3)</li>
<li>exportable certification (4)</li>
<li>trust signature (5)</li>
<li>regular expression (6)</li>
<li>revocable (7)</li>
<li>key expiration time (9)</li>
<li>placeholder for backward compatibility (10)</li>
<li>preferred symmetric algorithms (11)</li>
<li>revocation key (12)</li>
<li>issuer key ID (16)</li>
<li>notation data (20)</li>
<li>preferred hash algorithms (21)</li>
<li>preferred compression algorithms (22)</li>
<li>key server preferences (23)</li>
<li>preferred key server (24)</li>
<li>primary user id (25)</li>
<li>policy URL (26)</li>
<li>key flags (27)</li>
<li>signer's user id (28)</li>
<li>reason for revocation (29)</li>
<li>internal or user-defined (100 - 110)</li>
</ul>

<p>
While the value of certain Signature Subpackets are implied
(e.g. signature creation time), others are typically specified by the
keyholder at key creation time. However, XKMS 2.0 does not provide
enough standard elements and attributes that would let a user specify
the values for the above subpackets. Support for this could be added
through the definition of one or more XKMS message extensions. The
values could also be inferred through a service agreement or a service
policy.
</p>

<p>
At a minimum, a PGP user should be able to affect the value and criticality
indicator of the following
Signature SubPackets:</p>

<ul>
<li>exportable certification (4)</li>
<li>revocable (7)</li>
<li>preferred symmetric algorithms (11)</li>
<li>revocation key (12)</li>
<li>preferred hash algorithms (21)</li>
<li>preferred compression algorithms (22)</li>
<li>key server preferences (23)</li>
<li>preferred key server (24)</li>
<li>primary user id (25)</li>
<li>key flags (27)</li>
<li>reason for revocation (29)</li>
</ul>

<p>Note that revocation reason is a feature that is not specific to
PGP and should therefore be addressed in the more general XKMS
context. We included it in the above list for completeness.</p>

</div>

</div>

<div class="div1">

<h2><a name="Ref"></a>6. References</h2>

<dl>

<dt class="label"><a name="PGP"></a>[PGP] </dt><dd>
<a href="http://www.ietf.org/rfc/rfc2440.txt"><cite>OpenPGP Message Format</cite></a>, J. Callas, L. Donnerhacke, H. Finney, R. Thayer. IETF RFC, November 1998, <a href="http://www.ietf.org/rfc/rfc2440.txt">http://www.ietf.org/rfc/rfc2440.txt</a>.
</dd>


<dt class="label"><a name="XMLENC"></a>[XMLENC] </dt><dd>
<a href="http://www.w3.org/TR/xmlenc-core/"><cite>XML Encryption
Syntax and Processing</cite></a>, D. Eastlake, J. Reagle, T. Imamura,
B. Dillaway, E. Simon, Editors. W3C Recommendation, 10 December 2002,
<a href="http://www.w3.org/TR/xmlenc-core/">http://www.w3.org/TR/xmlenc-core/</a>.
</dd>

<dt class="label"><a name="XKMS"></a>[XKMS] </dt><dd>
<a href="http://www.w3.org/TR/2005/REC-xkms2-20050628/"><cite>XML Key
Management Specification (XKMS 2.0)</cite></a>, P. Hallam-Baker and
S. Mysore, Editors. W3C Recommendation, 28 June 2005, <a href="http://www.w3.org/TR/2005/REC-xkms2-20050628/">http://www.w3.org/TR/2005/REC-xkms2-20050628/</a>.
</dd>

<dt class="label"><a name="XKMSCRIR"></a>[XKMSCRIR] </dt><dd>
<a href="http://www.w3.org/2001/XKMS/Drafts/test-suite/CR-XKMS-Summary.html#Section_3_1"><cite>XKMS Candidate Recommendation Implementation Report</cite></a>, J. Kahan, 13 April 2005, 
<a href="http://www.w3.org/2001/XKMS/Drafts/test-suite/CR-XKMS-Summary.html#Section_3_1">http://www.w3.org/2001/XKMS/Drafts/test-suite/CR-XKMS-Summary.html#Section_3_1</a>.
</dd>

<dt class="label"><a name="XMLSIG"></a>[XMLSIG] </dt><dd><a href="http://www.w3.org/TR/xmldsig-core/"><cite>XML-Signature Syntax and
Processing</cite></a>, D. Eastlake, J. R., D. Solo, M. Bartel,
J. Boyer , B. Fox , E. Simon. W3C Recommendation, 12 February
2002, <a href="http://www.w3.org/TR/xmldsig-core/">http://www.w3.org/TR/xmldsig-core/</a>.
</dd>

</dl>
</div>

<div class="div1">

<h2><a name="Ack"></a>7. Acknowledgments</h2>

<p>The authors wish to thank Stephen Farrell (Trinity College Dublin),
Shivaram Mysore (Microsoft), and Thomas Roessler (W3C) for their useful
feedback on early drafts of this note.
</p>
</div>

</div>

<div class="back">

</div>
</body></html>