Jean-Paul Calderone | ec155e5 | 2010-10-07 22:34:15 -0400 | [diff] [blame^] | 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <title>3.1.11 Revoked objects </title> |
| 5 | <META NAME="description" CONTENT="3.1.11 Revoked 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="previous" href="crl.html"> |
| 11 | <LINK REL="up" href="openssl-crypto.html"> |
| 12 | <LINK REL="next" href="openssl-rand.html"> |
| 13 | </head> |
| 14 | <body> |
| 15 | <DIV CLASS="navigation"> |
| 16 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 17 | <tr> |
| 18 | <td><A href="crl.html"><img src="previous.gif" |
| 19 | border="0" height="32" |
| 20 | alt="Previous Page" width="32"></A></td> |
| 21 | <td><A href="openssl-crypto.html"><img src="up.gif" |
| 22 | border="0" height="32" |
| 23 | alt="Up One Level" width="32"></A></td> |
| 24 | <td><A href="openssl-rand.html"><img src="next.gif" |
| 25 | border="0" height="32" |
| 26 | alt="Next Page" width="32"></A></td> |
| 27 | <td align="center" width="100%">Python OpenSSL Manual</td> |
| 28 | <td><A href="contents.html"><img src="contents.gif" |
| 29 | border="0" height="32" |
| 30 | alt="Contents" width="32"></A></td> |
| 31 | <td><img src="blank.gif" |
| 32 | border="0" height="32" |
| 33 | alt="" width="32"></td> |
| 34 | <td><img src="blank.gif" |
| 35 | border="0" height="32" |
| 36 | alt="" width="32"></td> |
| 37 | </tr></table> |
| 38 | <b class="navlabel">Previous:</b> <a class="sectref" href="crl.html">3.1.10 CRL objects</A> |
| 39 | <b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A> |
| 40 | <b class="navlabel">Next:</b> <a class="sectref" href="openssl-rand.html">3.2 rand </A> |
| 41 | <br><hr> |
| 42 | </DIV> |
| 43 | <!--End of Navigation Panel--> |
| 44 | |
| 45 | <H3><A NAME="SECTION0004111000000000000000"> </A> |
| 46 | <BR> |
| 47 | 3.1.11 Revoked objects |
| 48 | </H3> |
| 49 | |
| 50 | <P> |
| 51 | Revoked objects have the following methods: |
| 52 | |
| 53 | <P> |
| 54 | <dl><dt><b><a name='l2h-105'><tt class='method'>all_reasons</tt></a></b>() |
| 55 | <dd> |
| 56 | Return a list of all supported reasons. |
| 57 | </dl> |
| 58 | |
| 59 | <P> |
| 60 | <dl><dt><b><a name='l2h-106'><tt class='method'>get_reason</tt></a></b>() |
| 61 | <dd> |
| 62 | Return the revocation reason as a str. Can be |
| 63 | None, which differs from "Unspecified". |
| 64 | </dl> |
| 65 | |
| 66 | <P> |
| 67 | <dl><dt><b><a name='l2h-107'><tt class='method'>get_rev_date</tt></a></b>() |
| 68 | <dd> |
| 69 | Return the revocation date as a str. |
| 70 | The string is formatted as an ASN1 GENERALIZEDTIME. |
| 71 | </dl> |
| 72 | |
| 73 | <P> |
| 74 | <dl><dt><b><a name='l2h-108'><tt class='method'>get_serial</tt></a></b>() |
| 75 | <dd> |
| 76 | Return a str containing a hex number of the serial of the revoked certificate. |
| 77 | </dl> |
| 78 | |
| 79 | <P> |
| 80 | <dl><dt><b><a name='l2h-109'><tt class='method'>set_reason</tt></a></b>(<var>reason</var>) |
| 81 | <dd> |
| 82 | Set the revocation reason. <var>reason</var> must |
| 83 | be None or a string, but the values are limited. |
| 84 | Spaces and case are ignored. See <tt class="method">all_reasons</tt>. |
| 85 | </dl> |
| 86 | |
| 87 | <P> |
| 88 | <dl><dt><b><a name='l2h-110'><tt class='method'>set_rev_date</tt></a></b>(<var>date</var>) |
| 89 | <dd> |
| 90 | Set the revocation date. |
| 91 | The string is formatted as an ASN1 GENERALIZEDTIME. |
| 92 | </dl> |
| 93 | |
| 94 | <P> |
| 95 | <dl><dt><b><a name='l2h-111'><tt class='method'>set_serial</tt></a></b>(<var>serial</var>) |
| 96 | <dd> |
| 97 | <var>serial</var> is a string containing a hex number of the serial of the revoked certificate. |
| 98 | </dl> |
| 99 | |
| 100 | <P> |
| 101 | |
| 102 | <DIV CLASS="navigation"> |
| 103 | <p><hr> |
| 104 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 105 | <tr> |
| 106 | <td><A href="crl.html"><img src="previous.gif" |
| 107 | border="0" height="32" |
| 108 | alt="Previous Page" width="32"></A></td> |
| 109 | <td><A href="openssl-crypto.html"><img src="up.gif" |
| 110 | border="0" height="32" |
| 111 | alt="Up One Level" width="32"></A></td> |
| 112 | <td><A href="openssl-rand.html"><img src="next.gif" |
| 113 | border="0" height="32" |
| 114 | alt="Next Page" width="32"></A></td> |
| 115 | <td align="center" width="100%">Python OpenSSL Manual</td> |
| 116 | <td><A href="contents.html"><img src="contents.gif" |
| 117 | border="0" height="32" |
| 118 | alt="Contents" width="32"></A></td> |
| 119 | <td><img src="blank.gif" |
| 120 | border="0" height="32" |
| 121 | alt="" width="32"></td> |
| 122 | <td><img src="blank.gif" |
| 123 | border="0" height="32" |
| 124 | alt="" width="32"></td> |
| 125 | </tr></table> |
| 126 | <b class="navlabel">Previous:</b> <a class="sectref" href="crl.html">3.1.10 CRL objects</A> |
| 127 | <b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A> |
| 128 | <b class="navlabel">Next:</b> <a class="sectref" href="openssl-rand.html">3.2 rand </A> |
| 129 | <hr> |
| 130 | <span class="release-info">Release 0.11a1.</span> |
| 131 | </DIV> |
| 132 | <!--End of Navigation Panel--> |
| 133 | |
| 134 | </BODY> |
| 135 | </HTML> |