~myers-1/pyopenssl/npn

« back to all changes in this revision

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

  • Committer: Jean-Paul Calderone
  • Date: 2010-01-25 22:55:30 UTC
  • mfrom: (126 trunk)
  • mto: This revision was merged to the branch mainline in revision 129.
  • Revision ID: exarkun@divmod.com-20100125225530-5e9nsb6bzoesoz42
merge trunk and resolve simple conflict

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
<table align="center" width="100%" cellpadding="0" cellspacing="2">
18
18
<tr>
19
19
<td><A href="openssl-pkcs7.html"><img src="previous.gif"
20
 
border="0" height="32"
 
20
  border="0" height="32"
21
21
  alt="Previous Page" width="32"></A></td>
22
22
<td><A href="openssl-crypto.html"><img src="up.gif"
23
 
border="0" height="32"
 
23
  border="0" height="32"
24
24
  alt="Up One Level" width="32"></A></td>
25
25
<td><A href="openssl-509ext.html"><img src="next.gif"
26
 
border="0" height="32"
 
26
  border="0" height="32"
27
27
  alt="Next Page" width="32"></A></td>
28
28
<td align="center" width="100%">Python OpenSSL Manual</td>
29
29
<td><A href="contents.html"><img src="contents.gif"
30
 
border="0" height="32"
 
30
  border="0" height="32"
31
31
  alt="Contents" width="32"></A></td>
32
32
<td><img src="blank.gif"
33
33
  border="0" height="32"
52
52
PKCS12 objects have the following methods:
53
53
 
54
54
<P>
55
 
<dl><dt><b><a name='l2h-81'><tt class='method'>get_certificate</tt></a></b>()
 
55
<dl><dt><b><a name='l2h-81'><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
<dd>
 
57
Returns a PKCS12 object as a string.
 
58
 
 
59
<P>
 
60
The optional <var>passphrase</var> must be a string not a callback.
 
61
 
 
62
<P>
 
63
See also the man page for the C function <tt class="function">PKCS12_create</tt>.
 
64
</dl>
 
65
 
 
66
<P>
 
67
<dl><dt><b><a name='l2h-82'><tt class='method'>get_ca_certificates</tt></a></b>()
 
68
<dd>
 
69
Return CA certificates within the PKCS12 object as a tuple. Returns
 
70
<tt class="constant">None</tt> if no CA certificates are present.
 
71
</dl>
 
72
 
 
73
<P>
 
74
<dl><dt><b><a name='l2h-83'><tt class='method'>get_certificate</tt></a></b>()
56
75
<dd>
57
76
Return certificate portion of the PKCS12 structure.
58
77
</dl>
59
78
 
60
79
<P>
61
 
<dl><dt><b><a name='l2h-82'><tt class='method'>get_privatekey</tt></a></b>()
 
80
<dl><dt><b><a name='l2h-84'><tt class='method'>get_friendlyname</tt></a></b>()
 
81
<dd>
 
82
Return friendlyName portion of the PKCS12 structure.
 
83
</dl>
 
84
 
 
85
<P>
 
86
<dl><dt><b><a name='l2h-85'><tt class='method'>get_privatekey</tt></a></b>()
62
87
<dd>
63
88
Return private key portion of the PKCS12 structure
64
89
</dl>
65
90
 
66
91
<P>
67
 
<dl><dt><b><a name='l2h-83'><tt class='method'>get_ca_certificates</tt></a></b>()
68
 
<dd>
69
 
Return CA certificates within the PKCS12 object as a tuple. Returns
70
 
None if no CA certificates are present.
 
92
<dl><dt><b><a name='l2h-86'><tt class='method'>set_ca_certificates</tt></a></b>(<var>cacerts</var>)
 
93
<dd>
 
94
Replace or set the CA certificates within the PKCS12 object with the sequence <var>cacerts</var>.
 
95
 
 
96
<P>
 
97
Set <var>cacerts</var> to <tt class="constant">None</tt> to remove all CA certificates.
 
98
</dl>
 
99
 
 
100
<P>
 
101
<dl><dt><b><a name='l2h-87'><tt class='method'>set_certificate</tt></a></b>(<var>cert</var>)
 
102
<dd>
 
103
Replace or set the certificate portion of the PKCS12 structure.
 
104
</dl>
 
105
 
 
106
<P>
 
107
<dl><dt><b><a name='l2h-88'><tt class='method'>set_friendlyname</tt></a></b>(<var>name</var>)
 
108
<dd>
 
109
Replace or set the friendlyName portion of the PKCS12 structure.
 
110
</dl>
 
111
 
 
112
<P>
 
113
<dl><dt><b><a name='l2h-89'><tt class='method'>set_privatekey</tt></a></b>(<var>pkey</var>)
 
114
<dd>
 
115
Replace or set private key portion of the PKCS12 structure
71
116
</dl>
72
117
 
73
118
<P>
77
122
<table align="center" width="100%" cellpadding="0" cellspacing="2">
78
123
<tr>
79
124
<td><A href="openssl-pkcs7.html"><img src="previous.gif"
80
 
border="0" height="32"
 
125
  border="0" height="32"
81
126
  alt="Previous Page" width="32"></A></td>
82
127
<td><A href="openssl-crypto.html"><img src="up.gif"
83
 
border="0" height="32"
 
128
  border="0" height="32"
84
129
  alt="Up One Level" width="32"></A></td>
85
130
<td><A href="openssl-509ext.html"><img src="next.gif"
86
 
border="0" height="32"
 
131
  border="0" height="32"
87
132
  alt="Next Page" width="32"></A></td>
88
133
<td align="center" width="100%">Python OpenSSL Manual</td>
89
134
<td><A href="contents.html"><img src="contents.gif"
90
 
border="0" height="32"
 
135
  border="0" height="32"
91
136
  alt="Contents" width="32"></A></td>
92
137
<td><img src="blank.gif"
93
138
  border="0" height="32"
100
145
<b class="navlabel">Up:</b> <a class="sectref" href="openssl-crypto.html">3.1 crypto  </A>
101
146
<b class="navlabel">Next:</b> <a class="sectref" href="openssl-509ext.html">3.1.8 X509Extension objects</A>
102
147
<hr>
103
 
<span class="release-info">Release 0.9.</span>
 
148
<span class="release-info">Release 0.10.</span>
104
149
</DIV>
105
150
<!--End of Navigation Panel-->
106
151