blob: d8a66fbdfc6043e1343d56304db26a8d66ca33ab [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>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050050
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050051<P>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050052X509Req objects have the following methods:
53
54<P>
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -040055<dl><dt><b><a name='l2h-65'><tt class='method'>get_pubkey</tt></a></b>()
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050056<dd>
57Return a PKey object representing the public key of the certificate request.
58</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050059
60<P>
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -040061<dl><dt><b><a name='l2h-66'><tt class='method'>get_subject</tt></a></b>()
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050062<dd>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050063Return an X509Name object representing the subject of the certificate.
64</dl>
65
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050066<P>
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -040067<dl><dt><b><a name='l2h-67'><tt class='method'>set_pubkey</tt></a></b>(<var>pkey</var>)
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050068<dd>
69Set the public key of the certificate request to <var>pkey</var>.
70</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050071
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050072<P>
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -040073<dl><dt><b><a name='l2h-68'><tt class='method'>sign</tt></a></b>(<var>pkey, digest</var>)
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050074<dd>
75Sign the certificate request, using the key <var>pkey</var> and the message digest
76algorithm identified by the string <var>digest</var>.
77</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050078
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050079<P>
Jean-Paul Calderonec54cc182008-03-26 21:11:07 -040080<dl><dt><b><a name='l2h-69'><tt class='method'>verify</tt></a></b>(<var>pkey</var>)
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050081<dd>
82Verify a certificate request using the public key <var>pkey</var>.
83</dl>
Jean-Paul Calderone2aa2b332008-03-06 21:43:14 -050084
Jean-Paul Calderone897bc252008-02-18 20:50:23 -050085<P>
86
87<DIV CLASS="navigation">
88<p><hr>
89<table align="center" width="100%" cellpadding="0" cellspacing="2">
90<tr>
91<td><A href="openssl-x509name.html"><img src="previous.gif"
92border="0" height="32"
93 alt="Previous Page" width="32"></A></td>
94<td><A href="openssl-crypto.html"><img src="up.gif"
95border="0" height="32"
96 alt="Up One Level" width="32"></A></td>
97<td><A href="openssl-x509store.html"><img src="next.gif"
98border="0" height="32"
99 alt="Next Page" width="32"></A></td>
100<td align="center" width="100%">Python OpenSSL Manual</td>
101<td><A href="contents.html"><img src="contents.gif"
102border="0" height="32"
103 alt="Contents" width="32"></A></td>
104<td><img src="blank.gif"
105 border="0" height="32"
106 alt="" width="32"></td>
107<td><img src="blank.gif"
108 border="0" height="32"
109 alt="" width="32"></td>
110</tr></table>
111<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-x509name.html">3.1.2 X509Name objects</A>
112<b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A>
113<b class="navlabel">Next:</b> <a class="sectref" href="openssl-x509store.html">3.1.4 X509Store objects</A>
114<hr>
Jean-Paul Calderoned2532d82008-03-25 15:20:39 -0400115<span class="release-info">Release 0.7a2.</span>
Jean-Paul Calderone897bc252008-02-18 20:50:23 -0500116</DIV>
117<!--End of Navigation Panel-->
118
119</BODY>
120</HTML>