Commit 85e2163
Moves break inside store.is_key_entry logic
This PR was in response to an issue we were running into when converting
Apple .p12 files into .pem using `OpenSSL::PKCS12`.
When creating a new instance with an Apple .p12 file, the initializer
was only checking the first alias in the `store` because of a break in the
.each loop. If there is more than one alias, only the first is being
checked.
In the case of the our .p12 file, the SECOND alias passes
`store.is_key_store`, but was being skipped because of the break.
This moves the break inside the `store.is_key_entry` logic statement,
which means each alias will be iterated through until either a match is
found or there are no other aliases.1 parent 6984ce2 commit 85e2163
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
75 | 76 | | |
76 | | - | |
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| |||
0 commit comments