Previous: An X.509 certificate, Up: Certificate to XML convertion functions
<?xml version="1.0"?> <gnutls:openpgp:key version="1.0"> <OPENPGPKEY> <MAINKEY> <KEYID>BD572CDCCCC07C3</KEYID> <FINGERPRINT>BE615E88D6CFF27225B8A2E7BD572CDCCCC07C35</FINGERPRINT> <PKALGO>DSA</PKALGO> <KEYLEN>1024</KEYLEN> <CREATED>1011533164</CREATED> <REVOKED>0</REVOKED> <KEY ENCODING="HEX"/> <DSA-P>0400E72E76B62EEFA9A3BD594093292418050C02D7029D6CA2066E FC34C86038627C643EB1A652A7AF1D37CF46FC505AC1E0C699B37895B4BCB 3E53541FFDA4766D6168C2B8AAFD6AB22466D06D18034D5DAC698E6993BA5 B350FF822E1CD8702A75114E8B73A6B09CB3B93CE44DBB516C9BB5F95BB66 6188602A0A1447236C0658F</DSA-P> <DSA-Q>00A08F5B5E78D85F792CC2072F9474645726FB4D9373</DSA-Q> <DSA-G>03FE3578D689D6606E9118E9F9A7042B963CF23F3D8F1377A273C0 F0974DBF44B3CABCBE14DD64412555863E39A9C627662D77AC36662AE4497 92C3262D3F12E9832A7565309D67BA0AE4DF25F5EDA0937056AD5BE89F406 9EBD7EC76CE432441DF5D52FFFD06D39E5F61E36947B698A77CB62AB81E4A 4122BF9050671D9946C865E</DSA-G> <DSA-Y>0400D061437A964DDE318818C2B24DE008E60096B60DB8A684B85A 838D119FC930311889AD57A3B927F448F84EB253C623EDA73B42FF78BCE63 A6A531D75A64CE8540513808E9F5B10CE075D3417B801164918B131D3544C 8765A8ECB9971F61A09FC73D509806106B5977D211CB0E1D04D0ED96BCE89 BAE8F73D800B052139CBF8D</DSA-Y> </MAINKEY> <USERID> <NAME>OpenCDK test key (Only intended for test purposes!)</NAME> <EMAIL>opencdk@foo-bar.org</EMAIL> <PRIMARY>0</PRIMARY> <REVOKED>0</REVOKED> </USERID> <SIGNATURE> <VERSION>4</VERSION> <SIGCLASS>19</SIGCLASS> <EXPIRED>0</EXPIRED> <PKALGO>DSA</PKALGO> <MDALGO>SHA1</MDALGO> <CREATED>1011533164</CREATED> <KEYID>BD572CDCCCC07C3</KEYID> </SIGNATURE> <SUBKEY> <KEYID>FCB0CF3A5261E06</KEYID> <FINGERPRINT>297B48ACC09C0FF683CA1ED1FCB0CF3A5261E067</FINGERPRINT> <PKALGO>ELG</PKALGO> <KEYLEN>1024</KEYLEN> <CREATED>1011533167</CREATED> <REVOKED>0</REVOKED> <KEY ENCODING="HEX"/> <ELG-P>0400E20156526069D067D24F4D71E6D38658E08BE3BF246C1ADCE0 8DB69CD8D459C1ED335738410798755AFDB79F1797CF022E70C7960F12CA6 896D27CFD24A11CD316DDE1FBCC1EA615C5C31FEC656E467078C875FC509B 1ECB99C8B56C2D875C50E2018B5B0FA378606EB6425A2533830F55FD21D64 9015615D49A1D09E9510F5F</ELG-P> <ELG-G>000305</ELG-G> <ELG-Y>0400D0BDADE40432758675C87D0730C360981467BAE1BEB6CC105A 3C1F366BFDBEA12E378456513238B8AD414E52A2A9661D1DF1DB6BB5F33F6 906166107556C813224330B30932DB7C8CC8225672D7AE24AF2469750E539 B661EA6475D2E03CD8D3838DC4A8AC4AFD213536FE3E96EC9D0AEA65164B5 76E01B37A8DCA89F2B257D0</ELG-Y> </SUBKEY> <SIGNATURE> <VERSION>4</VERSION> <SIGCLASS>24</SIGCLASS> <EXPIRED>0</EXPIRED> <PKALGO>DSA</PKALGO> <MDALGO>SHA1</MDALGO> <CREATED>1011533167</CREATED> <KEYID>BD572CDCCCC07C3</KEYID> </SIGNATURE> </OPENPGPKEY> </gnutls:openpgp:key>