~myers-1/pyopenssl/npn

« back to all changes in this revision

Viewing changes to doc/html/openssl-pkcs12.html

  • Committer: Jean-Paul Calderone
  • Date: 2011-04-11 23:26:11 UTC
  • mfrom: (143.1.6 release-0.12)
  • Revision ID: exarkun@divmod.com-20110411232611-z1xtswwjxqorzjrn
Merge 0.12 release branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
2
2
<html>
3
3
<head>
4
 
<title>3.1.7 PKCS12 objects </title>
5
 
<META NAME="description" CONTENT="3.1.7 PKCS12 objects ">
 
4
<title>3.1.8 PKCS12 objects </title>
 
5
<META NAME="description" CONTENT="3.1.8 PKCS12 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>
38
38
</tr></table>
39
 
<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-pkcs7.html">3.1.6 PKCS7 objects</A>
 
39
<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-pkcs7.html">3.1.7 PKCS7 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="openssl-509ext.html">3.1.8 X509Extension objects</A>
 
41
<b class="navlabel">Next:</b> <a class="sectref" href="openssl-509ext.html">3.1.9 X509Extension objects</A>
42
42
<br><hr>
43
43
</DIV>
44
44
<!--End of Navigation Panel-->
45
45
 
46
 
<H3><A NAME="SECTION000417000000000000000">&nbsp;</A>
 
46
<H3><A NAME="SECTION000418000000000000000">&nbsp;</A>
47
47
<BR>
48
 
3.1.7 PKCS12 objects 
 
48
3.1.8 PKCS12 objects 
49
49
</H3>
50
50
 
51
51
<P>
52
52
PKCS12 objects have the following methods:
53
53
 
54
54
<P>
55
 
<dl><dt><b><a name='l2h-86'><tt class='method'>export</tt></a></b>(<big>[</big><var>passphrase=None</var><big>]</big><big>[</big><var>, iter=2048</var><big>]</big><big>[</big><var>, maciter=1</var><big>]</big>)
 
55
<dl><dt><b><a name='l2h-90'><tt class='method'>export</tt></a></b>(<big>[</big><var>passphrase=None</var><big>]</big><big>[</big><var>, iter=2048</var><big>]</big><big>[</big><var>, maciter=1</var><big>]</big>)
56
56
<dd>
57
57
Returns a PKCS12 object as a string.
58
58
 
64
64
</dl>
65
65
 
66
66
<P>
67
 
<dl><dt><b><a name='l2h-87'><tt class='method'>get_ca_certificates</tt></a></b>()
 
67
<dl><dt><b><a name='l2h-91'><tt class='method'>get_ca_certificates</tt></a></b>()
68
68
<dd>
69
69
Return CA certificates within the PKCS12 object as a tuple. Returns
70
70
<tt class="constant">None</tt> if no CA certificates are present.
71
71
</dl>
72
72
 
73
73
<P>
74
 
<dl><dt><b><a name='l2h-88'><tt class='method'>get_certificate</tt></a></b>()
 
74
<dl><dt><b><a name='l2h-92'><tt class='method'>get_certificate</tt></a></b>()
75
75
<dd>
76
76
Return certificate portion of the PKCS12 structure.
77
77
</dl>
78
78
 
79
79
<P>
80
 
<dl><dt><b><a name='l2h-89'><tt class='method'>get_friendlyname</tt></a></b>()
 
80
<dl><dt><b><a name='l2h-93'><tt class='method'>get_friendlyname</tt></a></b>()
81
81
<dd>
82
82
Return friendlyName portion of the PKCS12 structure.
83
83
</dl>
84
84
 
85
85
<P>
86
 
<dl><dt><b><a name='l2h-90'><tt class='method'>get_privatekey</tt></a></b>()
 
86
<dl><dt><b><a name='l2h-94'><tt class='method'>get_privatekey</tt></a></b>()
87
87
<dd>
88
88
Return private key portion of the PKCS12 structure
89
89
</dl>
90
90
 
91
91
<P>
92
 
<dl><dt><b><a name='l2h-91'><tt class='method'>set_ca_certificates</tt></a></b>(<var>cacerts</var>)
 
92
<dl><dt><b><a name='l2h-95'><tt class='method'>set_ca_certificates</tt></a></b>(<var>cacerts</var>)
93
93
<dd>
94
94
Replace or set the CA certificates within the PKCS12 object with the sequence <var>cacerts</var>.
95
95
 
98
98
</dl>
99
99
 
100
100
<P>
101
 
<dl><dt><b><a name='l2h-92'><tt class='method'>set_certificate</tt></a></b>(<var>cert</var>)
 
101
<dl><dt><b><a name='l2h-96'><tt class='method'>set_certificate</tt></a></b>(<var>cert</var>)
102
102
<dd>
103
103
Replace or set the certificate portion of the PKCS12 structure.
104
104
</dl>
105
105
 
106
106
<P>
107
 
<dl><dt><b><a name='l2h-93'><tt class='method'>set_friendlyname</tt></a></b>(<var>name</var>)
 
107
<dl><dt><b><a name='l2h-97'><tt class='method'>set_friendlyname</tt></a></b>(<var>name</var>)
108
108
<dd>
109
109
Replace or set the friendlyName portion of the PKCS12 structure.
110
110
</dl>
111
111
 
112
112
<P>
113
 
<dl><dt><b><a name='l2h-94'><tt class='method'>set_privatekey</tt></a></b>(<var>pkey</var>)
 
113
<dl><dt><b><a name='l2h-98'><tt class='method'>set_privatekey</tt></a></b>(<var>pkey</var>)
114
114
<dd>
115
115
Replace or set private key portion of the PKCS12 structure
116
116
</dl>
141
141
  border="0" height="32"
142
142
  alt="" width="32"></td>
143
143
</tr></table>
144
 
<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-pkcs7.html">3.1.6 PKCS7 objects</A>
 
144
<b class="navlabel">Previous:</b> <a class="sectref" href="openssl-pkcs7.html">3.1.7 PKCS7 objects</A>
145
145
<b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto  </A>
146
 
<b class="navlabel">Next:</b> <a class="sectref" href="openssl-509ext.html">3.1.8 X509Extension objects</A>
 
146
<b class="navlabel">Next:</b> <a class="sectref" href="openssl-509ext.html">3.1.9 X509Extension objects</A>
147
147
<hr>
148
148
<span class="release-info">Release 0.11.</span>
149
149
</DIV>