v3.0.0-rc.1 (2026-08-26)
- Return
FullClusterJoinDatainstead ofClusterJoinDatafromadd_cluster_member(requires NetHSM v5)
- Update for NetHSM v5:
- Add
State.FAILEDvariant - Update clustering functionality:
- Add
FullClusterJoinData,ClusterDiagnostics,ClusterLogItem,ClusterStateandClusterSnapshotclasses - Change
NetHSM.join_clusterto also acceptFullClusterJoinData - Add
force_new_cluster,get_cluster_diagnostics,promote_cluster_memberfunctions toNetHSM - Add
learnerfield toClusterMember
- Add
- Add support for key labels:
- Add
labelargument toadd_key,add_key_pem,generate_key,list_keysfunctions - Add
NetHSM.set_key_labelfunction - Add optional
labelfield toKey
- Add
- Add support for NTP configuration:
- Add
NtpConfigclass - Add
get_config_ntp,set_ntp_configfunctions toNetHSM
- Add
- Add
v2.1.2 (2026-06-22)
- Patch generated client to remove the
python-dateutildependency.
v2.1.1 (2026-05-11)
- Fix endpoint path in
NetHSM.set_cluster_ca_certificate
v2.1.0 (2026-03-25)
- Add support for backup format v1.
- Add support for clustering (requires NetHSM v4):
- Add
ClusterMember,InitialClusterMemberandClusterJoinDataclasses - Add
add_cluster_member,list_cluster_members,set_cluster_member_urls,remove_cluster_member,join_cluster,get_cluster_ca_certificate,set_cluster_ca_certificatefunctions toNetHSM
- Add
- Add support for IPv6 configuration (requires NetHSM v4):
- Add
Ipv6Configclass NetworkConfig: Add optionalipv6fieldNetHSM.set_network_config: Add optionalipv6argument
- Add
- Improve backup parsing speed
- Use
poetryas build backend
v2.0.1 (2025-11-06)
- Add support for unauthenticated shutdown.
v2.0.0 (2025-10-15)
- Remove
KeyType.EC_P224 - Change arguments for
NetHSM.csrandNetHSM.key_csr:- Require
common_nameargument - Require using keywords for all arguments (except for
key_id)
- Require
- Add new enum values (requires NetHSM v3.0):
KeyType:EC_P256K1,BrainpoolP256,BrainpoolP384,BrainpoolP512KeyMechanism:BIP340_SignatureSignMode:BIP340TlsKeyType:BrainpoolP256,BrainpoolP384,BrainpoolP512
- Add support for dots, dashes and underscores in user and key IDs (requires NetHSM v3.0)
- Add
NetHSM.move_keyfunction for changing key IDs (requires NetHSM v3.0) - Add optional
subject_alt_namesargument forNetHSM.csrandNetHSM.key_csr(requires NetHSM v3.0) - Add optional
prefixargument forNetHSM.list_keys(requires NetHSM v3.0) - Always show the message returned by the NetHSM as part of the error message
v1.4.1 (2025-06-05)
- Relax
urllib3version requirement to>= 2, <3
v1.4.0 (2025-04-25)
- Add support for custom CA certificates
v1.3.0 (2025-03-13)
- Add TPM attestation keys and platform configuration registers to
SystemInfo(#128)
v1.2.1 (2024-07-31)
- Fix authentication for partial restore, i.e. on an operational instance (#124)
v1.2.0 (2024-07-16)
- Add support for namespaces (#110)
- Fix authentication for partial restore, i. e. on an operational instance (#120)
v1.1.0 (2024-05-03)
v1.0.0 (2023-11-27)
This release defines the stable API for the SDK based on the NetHSM v1.0 release. It also improves the handling of base64-encoded data and simplifies the provision and restore methods.
- Introduce custom type for Base64-encoded data by @robin-nitrokey (#104)
- Make system time optional in provision and restore by @robin-nitrokey (#105)
v0.5.0 (2023-11-23)
This release updates the API specification and improves the Python API.
- NetHSM API changes
- Adjust to /keys/{KeyID}/cert only one MIME type API change. by @q-nk (#60)
- Incorporate API specification changes on /keys/{KeyID}/cert type. by @q-nk (#62)
- Use generated client for set_key_certificate by @robin-nitrokey (#64)
- Fix return type for get_key_certificate by @robin-nitrokey (#66)
- Update OpenAPI generator and remove schema patches by @robin-nitrokey (#55)
- Adjust system restore code to system restore multipart api by @q-nk (#73)
- Pass old passphrase when setting unlock or backup passphrase by @robin-nitrokey (#72)
- Update API spec by @robin-nitrokey (#98)
- Python API refinements
- Use lazy imports for generated client by @robin-nitrokey (#67)
- Support different types of bytes input by @robin-nitrokey (#82)
- Use enums instead of literals by @robin-nitrokey (#81)
- Test enum completeness by @robin-nitrokey (#84)
- Return dataclasses from get_info and encrypt by @robin-nitrokey (#85)
- Mark helpers with underscore prefix by @robin-nitrokey (#87)
- Refactor get_key and Key by @robin-nitrokey (#89)
- Use dataclasses for add_key by @robin-nitrokey (#91)
- Always use API version from API spec by @robin-nitrokey (#92)
- Make authentication optional by @robin-nitrokey (#94)
- Parse system time into datetime object by @robin-nitrokey (#95)
- Fix type annotations for add_key by @robin-nitrokey (#101)
v0.4.0 (2023-10-27)
This release updates the API specification and adds support for validating backup files.
- Fix and extend typing checks
- Improve tests
- Adapt to API changes
- #47: Add certifi dependency (@robin-nitrokey)
- #52: Add backup validation (@robin-nitrokey)
v0.3.2 (2023-09-29)
This release fixes a warning if TLS verification is disabled.
- fix: disable warnings when tls verification is disabled by @nponsard (#31)
v0.3.1 (2023-09-29)
This release fixes the exception data.
- fix: exception data by @nponsard (#30)
v0.3.0 (2023-09-29)
This release improves the exception handling.
- refactor: exception handling by @nponsard (#27)
v0.2.0 (2023-09-28)
This release improves the documentation, removes an unused dependency and updates the API specification.
- doc: document lib usage by @nponsard (#11)
- fix: remove request dependency by @nponsard (#12)
- feat: update api spec with format: binary by @nponsard (#19)
- doc: document update() workaround by @nponsard (#20)
v0.1.0 (2023-09-26)
Initial release.