1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<title>3.1.11 Revoked objects </title>
5
<META NAME="description" CONTENT="3.1.11 Revoked objects ">
4
<title>3.1.12 Revoked objects </title>
5
<META NAME="description" CONTENT="3.1.12 Revoked objects ">
6
6
<META NAME="keywords" CONTENT="pyOpenSSL">
7
7
<META NAME="resource-type" CONTENT="document">
8
8
<META NAME="distribution" CONTENT="global">
35
35
border="0" height="32"
36
36
alt="" width="32"></td>
38
<b class="navlabel">Previous:</b> <a class="sectref" href="crl.html">3.1.10 CRL objects</A>
38
<b class="navlabel">Previous:</b> <a class="sectref" href="crl.html">3.1.11 CRL objects</A>
39
39
<b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A>
40
40
<b class="navlabel">Next:</b> <a class="sectref" href="openssl-rand.html">3.2 rand </A>
43
43
<!--End of Navigation Panel-->
45
<H3><A NAME="SECTION0004111000000000000000"> </A>
45
<H3><A NAME="SECTION0004112000000000000000"> </A>
47
3.1.11 Revoked objects
47
3.1.12 Revoked objects
51
51
Revoked objects have the following methods:
54
<dl><dt><b><a name='l2h-105'><tt class='method'>all_reasons</tt></a></b>()
54
<dl><dt><b><a name='l2h-109'><tt class='method'>all_reasons</tt></a></b>()
56
56
Return a list of all supported reasons.
60
<dl><dt><b><a name='l2h-106'><tt class='method'>get_reason</tt></a></b>()
60
<dl><dt><b><a name='l2h-110'><tt class='method'>get_reason</tt></a></b>()
62
62
Return the revocation reason as a str. Can be
63
63
None, which differs from "Unspecified".
67
<dl><dt><b><a name='l2h-107'><tt class='method'>get_rev_date</tt></a></b>()
67
<dl><dt><b><a name='l2h-111'><tt class='method'>get_rev_date</tt></a></b>()
69
69
Return the revocation date as a str.
70
70
The string is formatted as an ASN1 GENERALIZEDTIME.
74
<dl><dt><b><a name='l2h-108'><tt class='method'>get_serial</tt></a></b>()
74
<dl><dt><b><a name='l2h-112'><tt class='method'>get_serial</tt></a></b>()
76
76
Return a str containing a hex number of the serial of the revoked certificate.
80
<dl><dt><b><a name='l2h-109'><tt class='method'>set_reason</tt></a></b>(<var>reason</var>)
80
<dl><dt><b><a name='l2h-113'><tt class='method'>set_reason</tt></a></b>(<var>reason</var>)
82
82
Set the revocation reason. <var>reason</var> must
83
83
be None or a string, but the values are limited.
88
<dl><dt><b><a name='l2h-110'><tt class='method'>set_rev_date</tt></a></b>(<var>date</var>)
88
<dl><dt><b><a name='l2h-114'><tt class='method'>set_rev_date</tt></a></b>(<var>date</var>)
90
90
Set the revocation date.
91
91
The string is formatted as an ASN1 GENERALIZEDTIME.
95
<dl><dt><b><a name='l2h-111'><tt class='method'>set_serial</tt></a></b>(<var>serial</var>)
95
<dl><dt><b><a name='l2h-115'><tt class='method'>set_serial</tt></a></b>(<var>serial</var>)
97
97
<var>serial</var> is a string containing a hex number of the serial of the revoked certificate.
123
123
border="0" height="32"
124
124
alt="" width="32"></td>
126
<b class="navlabel">Previous:</b> <a class="sectref" href="crl.html">3.1.10 CRL objects</A>
126
<b class="navlabel">Previous:</b> <a class="sectref" href="crl.html">3.1.11 CRL objects</A>
127
127
<b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A>
128
128
<b class="navlabel">Next:</b> <a class="sectref" href="openssl-rand.html">3.2 rand </A>