We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a512918 commit 0f91cd7Copy full SHA for 0f91cd7
src/imp/openssl.rs
@@ -163,7 +163,10 @@ impl Identity {
163
Ok(Identity {
164
pkey: parsed.pkey,
165
cert: parsed.cert,
166
- chain: parsed.chain.into_iter().flatten().collect(),
+ // > The stack is the reverse of what you might expect due to the way
167
+ // > PKCS12_parse is implemented, so we need to load it backwards.
168
+ // > https://github.com/sfackler/rust-native-tls/commit/05fb5e583be589ab63d9f83d986d095639f8ec44
169
+ chain: parsed.chain.into_iter().flatten().rev().collect(),
170
})
171
}
172
0 commit comments