blob: 2cf03518ab1519844fdeb5d3a8bd3df9405d5139 [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 Calderone2aa2b332008-03-06 21:43:14 -050068X509Name objects have the following members:
69
70<P>
Jean-Paul Calderoned2532d82008-03-25 15:20:39 -040071<dl><dt><b><a name='l2h-57'><tt class='member'>countryName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050072<dd>
73The country of the entity. <code>C</code> may be used as an alias for
74<code>countryName</code>.
75</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050076
77<P>
Jean-Paul Calderoned2532d82008-03-25 15:20:39 -040078<dl><dt><b><a name='l2h-58'><tt class='member'>stateOrProvinceName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050079<dd>
80The state or province of the entity. <code>ST</code> may be used as an alias for
81<code>stateOrProvinceName</code>ยท
82</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050083
84<P>
Jean-Paul Calderoned2532d82008-03-25 15:20:39 -040085<dl><dt><b><a name='l2h-59'><tt class='member'>localityName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050086<dd>
87The locality of the entity. <code>L</code> may be used as an alias for
88<code>localityName</code>.
89</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050090
91<P>
Jean-Paul Calderoned2532d82008-03-25 15:20:39 -040092<dl><dt><b><a name='l2h-60'><tt class='member'>organizationName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050093<dd>
94The organization name of the entity. <code>O</code> may be used as an alias for
95<code>organizationName</code>.
96</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050097
98<P>
Jean-Paul Calderoned2532d82008-03-25 15:20:39 -040099<dl><dt><b><a name='l2h-61'><tt class='member'>organizationalUnitName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500100<dd>
101The organizational unit of the entity. <code>OU</code> may be used as an alias for
102<code>organizationalUnitName</code>.
103</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -0500104
105<P>
Jean-Paul Calderoned2532d82008-03-25 15:20:39 -0400106<dl><dt><b><a name='l2h-62'><tt class='member'>commonName</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500107<dd>
108The common name of the entity. <code>CN</code> may be used as an alias for
109<code>commonName</code>.
110</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -0500111
112<P>
Jean-Paul Calderoned2532d82008-03-25 15:20:39 -0400113<dl><dt><b><a name='l2h-63'><tt class='member'>emailAddress</tt></a></b>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500114<dd>
115The e-mail address of the entity.
116</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -0500117
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500118<P>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -0500119
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500120<DIV CLASS="navigation">
121<p><hr>
122<table align="center" width="100%" cellpadding="0" cellspacing="2">
123<tr>
124<td><A href="openssl-x509.html"><img src="previous.gif"
125border="0" height="32"
126 alt="Previous Page" width="32"></A></td>
127<td><A href="openssl-crypto.html"><img src="up.gif"
128border="0" height="32"
129 alt="Up One Level" width="32"></A></td>
130<td><A href="openssl-x509req.html"><img src="next.gif"
131border="0" height="32"
132 alt="Next Page" width="32"></A></td>
133<td align="center" width="100%">Python OpenSSL Manual</td>
134<td><A href="contents.html"><img src="contents.gif"
135border="0" height="32"
136 alt="Contents" width="32"></A></td>
137<td><img src="blank.gif"
138 border="0" height="32"
139 alt="" width="32"></td>
140<td><img src="blank.gif"
141 border="0" height="32"
142 alt="" width="32"></td>
143</tr></table>
144<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-x509.html">3.1.1 X509 objects</A>
145<b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A>
146<b class="navlabel">Next:</b> <a class="sectref" href="openssl-x509req.html">3.1.3 X509Req objects</A>
147<hr>
Jean-Paul Calderoned2532d82008-03-25 15:20:39 -0400148<span class="release-info">Release 0.7a2.</span>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500149</DIV>
150<!--End of Navigation Panel-->
151
152</BODY>
153</HTML>