Skip to content

fix(tls): decode encrypted_data of PKCS#8 keys as OCTET STRING - #31

Merged
dkmstr merged 1 commit into
masterfrom
fix/actor-encrypted-key-parsing
Sep 22, 2026
Merged

dkmstr merged 1 commit into
masterfrom
fix/actor-encrypted-key-parsing

Conversation

@dkmstr

@dkmstr dkmstr commented Sep 22, 2026

Copy link
Copy Markdown
Contributor

With pkcs8 0.11 the generic parameter of EncryptedPrivateKeyInfo is the type of the encrypted_data field. Using String made the decoder expect a UTF8String where RFC 5208 defines an OCTET STRING, so every password protected key sent by the broker failed to parse and the actor's local TLS server never started. The existing load_encrypted_key_with_password test was failing on master for this reason.

With pkcs8 0.11 the generic parameter of EncryptedPrivateKeyInfo is the
type of the encrypted_data field. Using String made the decoder expect a
UTF8String where RFC 5208 defines an OCTET STRING, so every password
protected key sent by the broker failed to parse and the actor's local
TLS server never started. The existing load_encrypted_key_with_password
test was failing on master for this reason.
@dkmstr
dkmstr merged commit 7f0d5ec into master Sep 22, 2026
2 checks passed
@aschumann-virtualcable
aschumann-virtualcable deleted the fix/actor-encrypted-key-parsing branch September 22, 2026 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants