You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<spanclass="sig-prename descclassname"><spanclass="pre">awsiot.mqtt_connection_builder.</span></span><spanclass="sig-name descname"><spanclass="pre">mtls_with_pkcs11</span></span><spanclass="sig-paren">(</span><emclass="sig-param"><spanclass="o"><spanclass="pre">*</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">pkcs11_lib</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">user_pin</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">slot_id</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">token_label</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">private_key_label</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">cert_filepath</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="n"><spanclass="pre">cert_bytes</span></span><spanclass="o"><spanclass="pre">=</span></span><spanclass="default_value"><spanclass="pre">None</span></span></em>, <emclass="sig-param"><spanclass="o"><spanclass="pre">**</span></span><spanclass="n"><spanclass="pre">kwargs</span></span></em><spanclass="sig-paren">)</span><aclass="headerlink" href="#awsiot.mqtt_connection_builder.mtls_with_pkcs11" title="Permalink to this definition">¶</a></dt>
181
+
<dd><p>This builder creates an <aclass="reference external" href="https://awslabs.github.io/aws-crt-python/api/mqtt.html#awscrt.mqtt.Connection" title="(in awscrt)"><codeclass="xref py py-class docutils literal notranslate"><spanclass="pre">awscrt.mqtt.Connection</span></code></a>, configured for an mTLS MQTT connection to AWS IoT,
182
+
using a PKCS#11 library for private key operations.</p>
183
+
<p>This function takes all <aclass="reference internal" href="#module-awsiot.mqtt_connection_builder" title="awsiot.mqtt_connection_builder"><codeclass="xref py py-mod docutils literal notranslate"><spanclass="pre">common</span><spanclass="pre">arguments</span></code></a>
184
+
described at the top of this doc, as well as…</p>
185
+
<dlclass="field-list simple">
186
+
<dtclass="field-odd">Parameters</dt>
187
+
<ddclass="field-odd"><ulclass="simple">
188
+
<li><p><strong>pkcs11_lib</strong> (<aclass="reference external" href="https://awslabs.github.io/aws-crt-python/api/io.html#awscrt.io.Pkcs11Lib" title="(in awscrt)"><em>awscrt.io.Pkcs11Lib</em></a>) – Use this PKCS#11 library</p></li>
189
+
<li><p><strong>user_pin</strong> (<aclass="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.10)"><em>str</em></a>) – User PIN, for logging into the PKCS#11 token.
190
+
Pass <cite>None</cite> to log into a token with a “protected authentication path”.</p></li>
191
+
<li><p><strong>slot_id</strong> (<em>Optional</em><em>[</em><aclass="reference external" href="https://docs.python.org/3/library/functions.html#int" title="(in Python v3.10)"><em>int</em></a><em>]</em>) – ID of slot containing PKCS#11 token.
192
+
If not specified, the token will be chosen based on other criteria (such as token label).</p></li>
193
+
<li><p><strong>token_label</strong> (<em>Optional</em><em>[</em><aclass="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.10)"><em>str</em></a><em>]</em>) – Label of the PKCS#11 token to use.
194
+
If not specified, the token will be chosen based on other criteria (such as slot ID).</p></li>
195
+
<li><p><strong>private_key_label</strong> (<em>Optional</em><em>[</em><aclass="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.10)"><em>str</em></a><em>]</em>) – Label of private key object on PKCS#11 token.
196
+
If not specified, the key will be chosen based on other criteria
197
+
(such as being the only available private key on the token).</p></li>
198
+
<li><p><strong>cert_filepath</strong> (<em>Optional</em><em>[</em><aclass="reference external" href="https://docs.python.org/3/library/stdtypes.html#str" title="(in Python v3.10)"><em>str</em></a><em>]</em>) – Use this X.509 certificate (file on disk).
199
+
The certificate must be PEM-formatted. The certificate may be
200
+
specified by other means instead (ex: <cite>cert_bytes</cite>)</p></li>
201
+
<li><p><strong>cert_bytes</strong> (<em>Optional</em><em>[</em><em>bytes-like object</em><em>]</em>) – Use this X.509 certificate (contents in memory).
202
+
The certificate must be PEM-formatted. The certificate may be
203
+
specified by other means instead (ex: <cite>cert_filepath</cite>)</p></li>
Copy file name to clipboardExpand all lines: docs/genindex.html
+6-2Lines changed: 6 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1017,6 +1017,8 @@ <h2 id="M">M</h2>
1017
1017
<li><ahref="awsiot/mqtt_connection_builder.html#awsiot.mqtt_connection_builder.mtls_from_bytes">mtls_from_bytes() (in module awsiot.mqtt_connection_builder)</a>
1018
1018
</li>
1019
1019
<li><ahref="awsiot/mqtt_connection_builder.html#awsiot.mqtt_connection_builder.mtls_from_path">mtls_from_path() (in module awsiot.mqtt_connection_builder)</a>
1020
+
</li>
1021
+
<li><ahref="awsiot/mqtt_connection_builder.html#awsiot.mqtt_connection_builder.mtls_with_pkcs11">mtls_with_pkcs11() (in module awsiot.mqtt_connection_builder)</a>
1020
1022
</li>
1021
1023
</ul></td>
1022
1024
</tr></table>
@@ -1863,6 +1865,8 @@ <h2 id="W">W</h2>
1863
1865
</ul></td>
1864
1866
<tdstyle="width: 33%; vertical-align: top;"><ul>
1865
1867
<li><ahref="awsiot/mqtt_connection_builder.html#awsiot.mqtt_connection_builder.websockets_with_default_aws_signing">websockets_with_default_aws_signing() (in module awsiot.mqtt_connection_builder)</a>
0 commit comments