diff --git a/pkcs11_cryptography_keys/sessions/PKCS11_admin_session.py b/pkcs11_cryptography_keys/sessions/PKCS11_admin_session.py index 520e0e8..faa7da0 100644 --- a/pkcs11_cryptography_keys/sessions/PKCS11_admin_session.py +++ b/pkcs11_cryptography_keys/sessions/PKCS11_admin_session.py @@ -97,7 +97,7 @@ def open(self) -> PKCS11TokenAdmin | None: keyid = self._key_id if label is None: if self._key_label is None: - label = b"default" + label = "default" else: label = self._key_label return PKCS11TokenAdmin(self._session, keyid, label)