1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<title>3.1.2 X509Name objects </title>
5
<META NAME="description" CONTENT="3.1.2 X509Name objects ">
4
<title>3.1.3 X509Name objects </title>
5
<META NAME="description" CONTENT="3.1.3 X509Name objects ">
6
6
<META NAME="keywords" CONTENT="pyOpenSSL">
7
7
<META NAME="resource-type" CONTENT="document">
8
8
<META NAME="distribution" CONTENT="global">
36
36
border="0" height="32"
37
37
alt="" width="32"></td>
39
<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-x509.html">3.1.1 X509 objects</A>
39
<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-x509.html">3.1.2 X509 objects</A>
40
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>
41
<b class="navlabel">Next:</b> <a class="sectref" href="openssl-x509req.html">3.1.4 X509Req objects</A>
44
44
<!--End of Navigation Panel-->
46
<H3><A NAME="SECTION000412000000000000000"> </A>
46
<H3><A NAME="SECTION000413000000000000000"> </A>
48
3.1.2 X509Name objects
48
3.1.3 X509Name objects
52
52
X509Name objects have the following methods:
55
<dl><dt><b><a name='l2h-60'><tt class='method'>hash</tt></a></b>()
55
<dl><dt><b><a name='l2h-64'><tt class='method'>hash</tt></a></b>()
57
57
Return an integer giving the first four bytes of the MD5 digest of the DER
58
58
representation of the name.
62
<dl><dt><b><a name='l2h-61'><tt class='method'>der</tt></a></b>()
62
<dl><dt><b><a name='l2h-65'><tt class='method'>der</tt></a></b>()
64
64
Return a string giving the DER representation of the name.
68
<dl><dt><b><a name='l2h-62'><tt class='method'>get_components</tt></a></b>()
68
<dl><dt><b><a name='l2h-66'><tt class='method'>get_components</tt></a></b>()
70
70
Return a list of two-tuples of strings giving the components of the name.
74
74
X509Name objects have the following members:
77
<dl><dt><b><a name='l2h-63'><tt class='member'>countryName</tt></a></b>
77
<dl><dt><b><a name='l2h-67'><tt class='member'>countryName</tt></a></b>
79
79
The country of the entity. <code>C</code> may be used as an alias for
80
80
<code>countryName</code>.
84
<dl><dt><b><a name='l2h-64'><tt class='member'>stateOrProvinceName</tt></a></b>
84
<dl><dt><b><a name='l2h-68'><tt class='member'>stateOrProvinceName</tt></a></b>
86
86
The state or province of the entity. <code>ST</code> may be used as an alias for
87
87
<code>stateOrProvinceName</code>�
91
<dl><dt><b><a name='l2h-65'><tt class='member'>localityName</tt></a></b>
91
<dl><dt><b><a name='l2h-69'><tt class='member'>localityName</tt></a></b>
93
93
The locality of the entity. <code>L</code> may be used as an alias for
94
94
<code>localityName</code>.
98
<dl><dt><b><a name='l2h-66'><tt class='member'>organizationName</tt></a></b>
98
<dl><dt><b><a name='l2h-70'><tt class='member'>organizationName</tt></a></b>
100
100
The organization name of the entity. <code>O</code> may be used as an alias for
101
101
<code>organizationName</code>.
105
<dl><dt><b><a name='l2h-67'><tt class='member'>organizationalUnitName</tt></a></b>
105
<dl><dt><b><a name='l2h-71'><tt class='member'>organizationalUnitName</tt></a></b>
107
107
The organizational unit of the entity. <code>OU</code> may be used as an alias for
108
108
<code>organizationalUnitName</code>.
112
<dl><dt><b><a name='l2h-68'><tt class='member'>commonName</tt></a></b>
112
<dl><dt><b><a name='l2h-72'><tt class='member'>commonName</tt></a></b>
114
114
The common name of the entity. <code>CN</code> may be used as an alias for
115
115
<code>commonName</code>.
119
<dl><dt><b><a name='l2h-69'><tt class='member'>emailAddress</tt></a></b>
119
<dl><dt><b><a name='l2h-73'><tt class='member'>emailAddress</tt></a></b>
121
121
The e-mail address of the entity.
147
147
border="0" height="32"
148
148
alt="" width="32"></td>
150
<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-x509.html">3.1.1 X509 objects</A>
150
<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-x509.html">3.1.2 X509 objects</A>
151
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>
152
<b class="navlabel">Next:</b> <a class="sectref" href="openssl-x509req.html">3.1.4 X509Req objects</A>
154
154
<span class="release-info">Release 0.11.</span>