blob: 211b7ad5a7257fb6133f24ec679ab89e8a2d25de [file] [log] [blame]
Jean-Paul Calderone897bc252008-02-18 20:50:23 -05001<!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"
20border="0" height="32"
21 alt="Previous Page" width="32"></A></td>
22<td><A href="openssl-crypto.html"><img src="up.gif"
23border="0" height="32"
24 alt="Up One Level" width="32"></A></td>
25<td><A href="openssl-x509req.html"><img src="next.gif"
26border="0" height="32"
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"
30border="0" height="32"
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">&nbsp;</A>
47<BR>
483.1.2 X509Name objects
49</H3>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050050
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050051<P>
Jean-Paul Calderone2dd8ff52008-03-24 17:43:58 -040052X509Name 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>
57Return an integer giving the first four bytes of the MD5 digest of the DER
58representation of the name.
59</dl>
60
61<P>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050062X509Name objects have the following members:
63
64<P>
Jean-Paul Calderone2dd8ff52008-03-24 17:43:58 -040065<dl><dt><b><a name='l2h-56'><tt class='member'>countryName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050066<dd>
67The country of the entity. <code>C</code> may be used as an alias for
68<code>countryName</code>.
69</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050070
71<P>
Jean-Paul Calderone2dd8ff52008-03-24 17:43:58 -040072<dl><dt><b><a name='l2h-57'><tt class='member'>stateOrProvinceName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050073<dd>
74The state or province of the entity. <code>ST</code> may be used as an alias for
75<code>stateOrProvinceName</code>ยท
76</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050077
78<P>
Jean-Paul Calderone2dd8ff52008-03-24 17:43:58 -040079<dl><dt><b><a name='l2h-58'><tt class='member'>localityName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050080<dd>
81The locality of the entity. <code>L</code> may be used as an alias for
82<code>localityName</code>.
83</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050084
85<P>
Jean-Paul Calderone2dd8ff52008-03-24 17:43:58 -040086<dl><dt><b><a name='l2h-59'><tt class='member'>organizationName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050087<dd>
88The organization name of the entity. <code>O</code> may be used as an alias for
89<code>organizationName</code>.
90</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050091
92<P>
Jean-Paul Calderone2dd8ff52008-03-24 17:43:58 -040093<dl><dt><b><a name='l2h-60'><tt class='member'>organizationalUnitName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050094<dd>
95The organizational unit of the entity. <code>OU</code> may be used as an alias for
96<code>organizationalUnitName</code>.
97</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050098
99<P>
Jean-Paul Calderone2dd8ff52008-03-24 17:43:58 -0400100<dl><dt><b><a name='l2h-61'><tt class='member'>commonName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500101<dd>
102The common name of the entity. <code>CN</code> may be used as an alias for
103<code>commonName</code>.
104</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -0500105
106<P>
Jean-Paul Calderone2dd8ff52008-03-24 17:43:58 -0400107<dl><dt><b><a name='l2h-62'><tt class='member'>emailAddress</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500108<dd>
109The e-mail address of the entity.
110</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -0500111
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500112<P>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -0500113
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500114<DIV CLASS="navigation">
115<p><hr>
116<table align="center" width="100%" cellpadding="0" cellspacing="2">
117<tr>
118<td><A href="openssl-x509.html"><img src="previous.gif"
119border="0" height="32"
120 alt="Previous Page" width="32"></A></td>
121<td><A href="openssl-crypto.html"><img src="up.gif"
122border="0" height="32"
123 alt="Up One Level" width="32"></A></td>
124<td><A href="openssl-x509req.html"><img src="next.gif"
125border="0" height="32"
126 alt="Next Page" width="32"></A></td>
127<td align="center" width="100%">Python OpenSSL Manual</td>
128<td><A href="contents.html"><img src="contents.gif"
129border="0" height="32"
130 alt="Contents" width="32"></A></td>
131<td><img src="blank.gif"
132 border="0" height="32"
133 alt="" width="32"></td>
134<td><img src="blank.gif"
135 border="0" height="32"
136 alt="" width="32"></td>
137</tr></table>
138<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-x509.html">3.1.1 X509 objects</A>
139<b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A>
140<b class="navlabel">Next:</b> <a class="sectref" href="openssl-x509req.html">3.1.3 X509Req objects</A>
141<hr>
Jean-Paul Calderone14f02a02008-03-22 00:08:01 -0400142<span class="release-info">Release 0.7a1.</span>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500143</DIV>
144<!--End of Navigation Panel-->
145
146</BODY>
147</HTML>