blob: e65c24618c786d0c357c39c5d6b689b9a7bd4fc5 [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.3 X509Req objects </title>
5<META NAME="description" CONTENT="3.1.3 X509Req 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-x509store.html">
11<LINK REL="previous" href="openssl-x509name.html">
12<LINK REL="up" href="openssl-crypto.html">
13<LINK REL="next" href="openssl-x509store.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-x509name.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-x509store.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-x509name.html">3.1.2 X509Name 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-x509store.html">3.1.4 X509Store objects</A>
42<br><hr>
43</DIV>
44<!--End of Navigation Panel-->
45
46<H3><A NAME="SECTION000413000000000000000">&nbsp;</A>
47<BR>
483.1.3 X509Req objects
49</H3>
50<P>
51<EM><EM>X509Req objects have the following methods:
52</EM></EM>
53<P><dl><dt><b><a name='l2h-58'><tt class='method'>get_pubkey</tt></a></b>()
54<dd>
55Return a PKey object representing the public key of the certificate request.
56</dl>
57<P><dl><dt><b><a name='l2h-59'><tt class='method'>get_subject</tt></a></b>()
58<dd>
59Return a <EM>borrowed reference to a X509Name object representing the subject
60of the certificate. When the corresponding X509 or X509Req object is
61destroyed, this object will be invalid!
62</dl></EM>
63<P>
64<dl><dt><b><a name='l2h-60'><tt class='method'>set_pubkey</tt></a></b>(<var>pkey</var>)
65<dd>
66Set the public key of the certificate request to <var>pkey</var>.
67</dl>
68<P>
69<dl><dt><b><a name='l2h-61'><tt class='method'>sign</tt></a></b>(<var>pkey, digest</var>)
70<dd>
71Sign the certificate request, using the key <var>pkey</var> and the message digest
72algorithm identified by the string <var>digest</var>.
73</dl>
74<P>
75<dl><dt><b><a name='l2h-62'><tt class='method'>verify</tt></a></b>(<var>pkey</var>)
76<dd>
77Verify a certificate request using the public key <var>pkey</var>.
78</dl>
79<P>
80
81<DIV CLASS="navigation">
82<p><hr>
83<table align="center" width="100%" cellpadding="0" cellspacing="2">
84<tr>
85<td><A href="openssl-x509name.html"><img src="previous.gif"
86border="0" height="32"
87 alt="Previous Page" width="32"></A></td>
88<td><A href="openssl-crypto.html"><img src="up.gif"
89border="0" height="32"
90 alt="Up One Level" width="32"></A></td>
91<td><A href="openssl-x509store.html"><img src="next.gif"
92border="0" height="32"
93 alt="Next Page" width="32"></A></td>
94<td align="center" width="100%">Python OpenSSL Manual</td>
95<td><A href="contents.html"><img src="contents.gif"
96border="0" height="32"
97 alt="Contents" width="32"></A></td>
98<td><img src="blank.gif"
99 border="0" height="32"
100 alt="" width="32"></td>
101<td><img src="blank.gif"
102 border="0" height="32"
103 alt="" width="32"></td>
104</tr></table>
105<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-x509name.html">3.1.2 X509Name objects</A>
106<b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A>
107<b class="navlabel">Next:</b> <a class="sectref" href="openssl-x509store.html">3.1.4 X509Store objects</A>
108<hr>
109<span class="release-info">Release 0.6.</span>
110</DIV>
111<!--End of Navigation Panel-->
112
113</BODY>
114</HTML>