blob: 6708f175e221d317cad2e26556cfe3a36f438954 [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 Calderoned2532d82008-03-25 15:20:39 -040062<dl><dt><b><a name='l2h-56'><tt class='method'>der</tt></a></b>()
63<dd>
64Return a string giving the DER representation of the name.
65</dl>
66
67<P>
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -040068<dl><dt><b><a name='l2h-57'><tt class='method'>get_components</tt></a></b>()
69<dd>
70Return a list of two-tuples of strings giving the components of the name.
71</dl>
72
73<P>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050074X509Name objects have the following members:
75
76<P>
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -040077<dl><dt><b><a name='l2h-58'><tt class='member'>countryName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050078<dd>
79The country of the entity. <code>C</code> may be used as an alias for
80<code>countryName</code>.
81</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050082
83<P>
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -040084<dl><dt><b><a name='l2h-59'><tt class='member'>stateOrProvinceName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050085<dd>
86The state or province of the entity. <code>ST</code> may be used as an alias for
87<code>stateOrProvinceName</code>ยท
88</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050089
90<P>
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -040091<dl><dt><b><a name='l2h-60'><tt class='member'>localityName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050092<dd>
93The locality of the entity. <code>L</code> may be used as an alias for
94<code>localityName</code>.
95</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050096
97<P>
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -040098<dl><dt><b><a name='l2h-61'><tt class='member'>organizationName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050099<dd>
100The organization name of the entity. <code>O</code> may be used as an alias for
101<code>organizationName</code>.
102</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -0500103
104<P>
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -0400105<dl><dt><b><a name='l2h-62'><tt class='member'>organizationalUnitName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500106<dd>
107The organizational unit of the entity. <code>OU</code> may be used as an alias for
108<code>organizationalUnitName</code>.
109</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -0500110
111<P>
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -0400112<dl><dt><b><a name='l2h-63'><tt class='member'>commonName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500113<dd>
114The common name of the entity. <code>CN</code> may be used as an alias for
115<code>commonName</code>.
116</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -0500117
118<P>
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -0400119<dl><dt><b><a name='l2h-64'><tt class='member'>emailAddress</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500120<dd>
121The e-mail address of the entity.
122</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -0500123
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500124<P>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -0500125
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500126<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"
131border="0" height="32"
132 alt="Previous Page" width="32"></A></td>
133<td><A href="openssl-crypto.html"><img src="up.gif"
134border="0" height="32"
135 alt="Up One Level" width="32"></A></td>
136<td><A href="openssl-x509req.html"><img src="next.gif"
137border="0" height="32"
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"
141border="0" height="32"
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 Calderoned2532d82008-03-25 15:20:39 -0400154<span class="release-info">Release 0.7a2.</span>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500155</DIV>
156<!--End of Navigation Panel-->
157
158</BODY>
159</HTML>