---
title: "Pkcs11Options"
canonical_url: "https://www.nutrient.io/api/python/signing/pkcs11-options/"
md_url: "https://www.nutrient.io/api/python/signing/pkcs11-options.md"
last_updated: "2026-09-02T11:19:46.688Z"
description: "Locates the signing key on a PKCS#11 (Cryptoki) module — a hardware security module, USB token, or smartcard accessed through a vendor driver."
---

Locates the signing key on a PKCS#11 (Cryptoki) module — a hardware security module, USB token, or smartcard accessed through a vendor driver.

Used when `KeySource` is `Pkcs11`. Works on any platform the vendor module supports.

```python

from nutrient_sdk import Pkcs11Options

```

## Construction

```python

Pkcs11Options()

```

Creates a new `Pkcs11Options` instance with default settings.

## Properties

### key_label

```python

@property
def key_label(self) -> str

@key_label.setter
def key_label(self, value: str) -> None

```

The label of the signing key to use. When empty, the first signing-capable key is used.

**Type:** `str`

---

### module_path

```python

@property
def module_path(self) -> str

@module_path.setter
def module_path(self, value: str) -> None

```

The file path of the vendor PKCS#11 module (for example `opensc-pkcs11.dll`).

**Type:** `str`

---

### pin

```python

@property
def pin(self) -> str

@pin.setter
def pin(self, value: str) -> None

```

The user PIN used to log in to the token.

**Type:** `str`

---

### token_label

```python

@property
def token_label(self) -> str

@token_label.setter
def token_label(self, value: str) -> None

```

The label of the token to use. When empty, the first token present is used.

**Type:** `str`

---

---

## Related pages

- [All public classes import directly from the top-level package:](/api/python/signing.md)
- [Digital Signature Options](/api/python/signing/digital-signature-options.md)
- [Signature Appearance](/api/python/signing/signature-appearance.md)
- [Signature](/api/python/signing/signature.md)
- [Timestamp Configuration](/api/python/signing/timestamp-configuration.md)

