1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
4
<title>3.1.9 NetscapeSPKI objects </title>
5
<META NAME="description" CONTENT="3.1.9 NetscapeSPKI objects ">
4
<title>3.1.10 NetscapeSPKI objects </title>
5
<META NAME="description" CONTENT="3.1.10 NetscapeSPKI 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-509ext.html">3.1.8 X509Extension objects</A>
39
<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-509ext.html">3.1.9 X509Extension 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="crl.html">3.1.10 CRL objects</A>
41
<b class="navlabel">Next:</b> <a class="sectref" href="crl.html">3.1.11 CRL objects</A>
44
44
<!--End of Navigation Panel-->
46
<H3><A NAME="SECTION000419000000000000000"> </A>
46
<H3><A NAME="SECTION0004110000000000000000"> </A>
48
3.1.9 NetscapeSPKI objects
48
3.1.10 NetscapeSPKI objects
52
52
NetscapeSPKI objects have the following methods:
55
<dl><dt><b><a name='l2h-97'><tt class='method'>b64_encode</tt></a></b>()
55
<dl><dt><b><a name='l2h-101'><tt class='method'>b64_encode</tt></a></b>()
57
57
Return a base64-encoded string representation of the object.
61
<dl><dt><b><a name='l2h-98'><tt class='method'>get_pubkey</tt></a></b>()
61
<dl><dt><b><a name='l2h-102'><tt class='method'>get_pubkey</tt></a></b>()
63
63
Return the public key of object.
67
<dl><dt><b><a name='l2h-99'><tt class='method'>set_pubkey</tt></a></b>(<var>key</var>)
67
<dl><dt><b><a name='l2h-103'><tt class='method'>set_pubkey</tt></a></b>(<var>key</var>)
69
69
Set the public key of the object to <var>key</var>.
73
<dl><dt><b><a name='l2h-100'><tt class='method'>sign</tt></a></b>(<var>key, digest_name</var>)
73
<dl><dt><b><a name='l2h-104'><tt class='method'>sign</tt></a></b>(<var>key, digest_name</var>)
75
75
Sign the NetscapeSPKI object using the given <var>key</var> and
76
76
<var>digest_name</var>. <var>digest_name</var> must be a string describing a digest
110
110
border="0" height="32"
111
111
alt="" width="32"></td>
113
<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-509ext.html">3.1.8 X509Extension objects</A>
113
<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-509ext.html">3.1.9 X509Extension objects</A>
114
114
<b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto </A>
115
<b class="navlabel">Next:</b> <a class="sectref" href="crl.html">3.1.10 CRL objects</A>
115
<b class="navlabel">Next:</b> <a class="sectref" href="crl.html">3.1.11 CRL objects</A>
117
117
<span class="release-info">Release 0.11.</span>