Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Potential compatibility issue of PKCS#12 format #339

Open
sunmy2019 opened this issue Feb 21, 2024 · 0 comments
Open

Potential compatibility issue of PKCS#12 format #339

sunmy2019 opened this issue Feb 21, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@sunmy2019
Copy link
Contributor

PKCS#12 format required by openssl 1.1.1 and openssl 3.0 (PKCS12_parse) is different. openssl/openssl#6698


Format 1: openssl 1.1 required:
CN = Leaf
CN = Root
CN = CA #2
CN = CA #1


Format 2: openssl 3.0 required:
CN = Leaf
CN = CA #1
CN = CA #2
CN = Root


This causes compatibility issues in rust-native-rls. sfackler/rust-native-tls#281

rust-native-tls officially supports Format 2, when used with openssl 1.1.
And in practice, it also supports Format 1, when used with openssl 3.0.


Luckily, in our use cases, we only have Leaf and Root. Format 1 and Format 2 are the same. Our users are less likely to be affected.

This is a kind note for users with compatibility issues for PKCS#12.

@sunmy2019 sunmy2019 added the bug Something isn't working label Feb 21, 2024
@sunmy2019 sunmy2019 changed the title Potential Compatibility Issue of PKCS#12 Format Potential compatibility issue of PKCS#12 format Feb 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant