Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>3.1.2 X509Name objects </title> |
| 5 | <META NAME="description" CONTENT="3.1.2 X509Name objects "> |
| 6 | <META NAME="keywords" CONTENT="pyOpenSSL"> |
| 7 | <META NAME="resource-type" CONTENT="document"> |
| 8 | <META NAME="distribution" CONTENT="global"> |
| 9 | <link rel="STYLESHEET" href="pyOpenSSL.css"> |
| 10 | <LINK REL="next" href="openssl-x509req.html"> |
| 11 | <LINK REL="previous" href="openssl-x509.html"> |
| 12 | <LINK REL="up" href="openssl-crypto.html"> |
| 13 | <LINK REL="next" href="openssl-x509req.html"> |
| 14 | </head> |
| 15 | <body> |
| 16 | <DIV CLASS="navigation"> |
| 17 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 18 | <tr> |
| 19 | <td><A href="openssl-x509.html"><img src="previous.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 20 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 21 | alt="Previous Page" width="32"></A></td> |
| 22 | <td><A href="openssl-crypto.html"><img src="up.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 23 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 24 | alt="Up One Level" width="32"></A></td> |
| 25 | <td><A href="openssl-x509req.html"><img src="next.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 26 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 27 | alt="Next Page" width="32"></A></td> |
| 28 | <td align="center" width="100%">Python OpenSSL Manual</td> |
| 29 | <td><A href="contents.html"><img src="contents.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 30 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 31 | alt="Contents" width="32"></A></td> |
| 32 | <td><img src="blank.gif" |
| 33 | border="0" height="32" |
| 34 | alt="" width="32"></td> |
| 35 | <td><img src="blank.gif" |
| 36 | border="0" height="32" |
| 37 | alt="" width="32"></td> |
| 38 | </tr></table> |
| 39 | <b class="navlabel">Previous:</b> <a class="sectref" href="openssl-x509.html">3.1.1 X509 objects</A> |
| 40 | <b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A> |
| 41 | <b class="navlabel">Next:</b> <a class="sectref" href="openssl-x509req.html">3.1.3 X509Req objects</A> |
| 42 | <br><hr> |
| 43 | </DIV> |
| 44 | <!--End of Navigation Panel--> |
| 45 | |
| 46 | <H3><A NAME="SECTION000412000000000000000"> </A> |
| 47 | <BR> |
| 48 | 3.1.2 X509Name objects |
| 49 | </H3> |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 50 | |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 51 | <P> |
Jean-Paul Calderone | 2dd8ff5 | 2008-03-24 17:43:58 -0400 | [diff] [blame] | 52 | X509Name objects have the following methods: |
| 53 | |
| 54 | <P> |
| 55 | <dl><dt><b><a name='l2h-55'><tt class='method'>hash</tt></a></b>() |
| 56 | <dd> |
| 57 | Return an integer giving the first four bytes of the MD5 digest of the DER |
| 58 | representation of the name. |
| 59 | </dl> |
| 60 | |
| 61 | <P> |
Jean-Paul Calderone | d2532d8 | 2008-03-25 15:20:39 -0400 | [diff] [blame] | 62 | <dl><dt><b><a name='l2h-56'><tt class='method'>der</tt></a></b>() |
| 63 | <dd> |
| 64 | Return a string giving the DER representation of the name. |
| 65 | </dl> |
| 66 | |
| 67 | <P> |
Jean-Paul Calderone | c54cc18 | 2008-03-26 21:11:07 -0400 | [diff] [blame] | 68 | <dl><dt><b><a name='l2h-57'><tt class='method'>get_components</tt></a></b>() |
| 69 | <dd> |
| 70 | Return a list of two-tuples of strings giving the components of the name. |
| 71 | </dl> |
| 72 | |
| 73 | <P> |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 74 | X509Name objects have the following members: |
| 75 | |
| 76 | <P> |
Jean-Paul Calderone | c54cc18 | 2008-03-26 21:11:07 -0400 | [diff] [blame] | 77 | <dl><dt><b><a name='l2h-58'><tt class='member'>countryName</tt></a></b> |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 78 | <dd> |
| 79 | The country of the entity. <code>C</code> may be used as an alias for |
| 80 | <code>countryName</code>. |
| 81 | </dl> |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 82 | |
| 83 | <P> |
Jean-Paul Calderone | c54cc18 | 2008-03-26 21:11:07 -0400 | [diff] [blame] | 84 | <dl><dt><b><a name='l2h-59'><tt class='member'>stateOrProvinceName</tt></a></b> |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 85 | <dd> |
| 86 | The state or province of the entity. <code>ST</code> may be used as an alias for |
| 87 | <code>stateOrProvinceName</code>ยท |
| 88 | </dl> |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 89 | |
| 90 | <P> |
Jean-Paul Calderone | c54cc18 | 2008-03-26 21:11:07 -0400 | [diff] [blame] | 91 | <dl><dt><b><a name='l2h-60'><tt class='member'>localityName</tt></a></b> |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 92 | <dd> |
| 93 | The locality of the entity. <code>L</code> may be used as an alias for |
| 94 | <code>localityName</code>. |
| 95 | </dl> |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 96 | |
| 97 | <P> |
Jean-Paul Calderone | c54cc18 | 2008-03-26 21:11:07 -0400 | [diff] [blame] | 98 | <dl><dt><b><a name='l2h-61'><tt class='member'>organizationName</tt></a></b> |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 99 | <dd> |
| 100 | The organization name of the entity. <code>O</code> may be used as an alias for |
| 101 | <code>organizationName</code>. |
| 102 | </dl> |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 103 | |
| 104 | <P> |
Jean-Paul Calderone | c54cc18 | 2008-03-26 21:11:07 -0400 | [diff] [blame] | 105 | <dl><dt><b><a name='l2h-62'><tt class='member'>organizationalUnitName</tt></a></b> |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 106 | <dd> |
| 107 | The organizational unit of the entity. <code>OU</code> may be used as an alias for |
| 108 | <code>organizationalUnitName</code>. |
| 109 | </dl> |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 110 | |
| 111 | <P> |
Jean-Paul Calderone | c54cc18 | 2008-03-26 21:11:07 -0400 | [diff] [blame] | 112 | <dl><dt><b><a name='l2h-63'><tt class='member'>commonName</tt></a></b> |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 113 | <dd> |
| 114 | The common name of the entity. <code>CN</code> may be used as an alias for |
| 115 | <code>commonName</code>. |
| 116 | </dl> |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 117 | |
| 118 | <P> |
Jean-Paul Calderone | c54cc18 | 2008-03-26 21:11:07 -0400 | [diff] [blame] | 119 | <dl><dt><b><a name='l2h-64'><tt class='member'>emailAddress</tt></a></b> |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 120 | <dd> |
| 121 | The e-mail address of the entity. |
| 122 | </dl> |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 123 | |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 124 | <P> |
Jean-Paul Calderone | 2aa2b33 | 2008-03-06 21:43:14 -0500 | [diff] [blame] | 125 | |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 126 | <DIV CLASS="navigation"> |
| 127 | <p><hr> |
| 128 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 129 | <tr> |
| 130 | <td><A href="openssl-x509.html"><img src="previous.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 131 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 132 | alt="Previous Page" width="32"></A></td> |
| 133 | <td><A href="openssl-crypto.html"><img src="up.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 134 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 135 | alt="Up One Level" width="32"></A></td> |
| 136 | <td><A href="openssl-x509req.html"><img src="next.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 137 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 138 | alt="Next Page" width="32"></A></td> |
| 139 | <td align="center" width="100%">Python OpenSSL Manual</td> |
| 140 | <td><A href="contents.html"><img src="contents.gif" |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 141 | border="0" height="32" |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 142 | alt="Contents" width="32"></A></td> |
| 143 | <td><img src="blank.gif" |
| 144 | border="0" height="32" |
| 145 | alt="" width="32"></td> |
| 146 | <td><img src="blank.gif" |
| 147 | border="0" height="32" |
| 148 | alt="" width="32"></td> |
| 149 | </tr></table> |
| 150 | <b class="navlabel">Previous:</b> <a class="sectref" href="openssl-x509.html">3.1.1 X509 objects</A> |
| 151 | <b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A> |
| 152 | <b class="navlabel">Next:</b> <a class="sectref" href="openssl-x509req.html">3.1.3 X509Req objects</A> |
| 153 | <hr> |
Jean-Paul Calderone | 215d51b | 2009-11-13 09:19:21 -0500 | [diff] [blame] | 154 | <span class="release-info">Release 0.10.</span> |
Jean-Paul Calderone | 897bc25 | 2008-02-18 20:50:23 -0500 | [diff] [blame] | 155 | </DIV> |
| 156 | <!--End of Navigation Panel--> |
| 157 | |
| 158 | </BODY> |
| 159 | </HTML> |