-
Notifications
You must be signed in to change notification settings - Fork 48
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
problem with AES-256-CBC private key #21
Comments
Interesting, what versions of Elixir, Erlang, and OpenSSL are you using? |
Erlang/OTP 20 [erts-9.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:10] [hipe] [kernel-poll:false] [dtrace] Elixir 1.6.0 (compiled with OTP 20) Erlang : 20.2.2 LibreSSL 2.2.7 |
Does the |
openssl genrsa -aes256 -out rsa_secure_private.pem -passout pass:123456 2048 |
I have an idea what might be going on, I'll check and see, then post back here. |
I think this may be a limitation of the underlying I don't see a way to pass it any options to let it know the Is that something you would want to take a crack at in a pull-request? If not I might have some time to tackle it in the next week or so. |
I'm not an Erlang specialist and this is not blocking me at the moment, so I can wait. |
It seems that Erlang implements PKCS#5 v2.0 against RFC-2898. I don't know exactly at what points they differ but I'm quite sure the Erlang team will take some time to implement it. So, at this point, I think there's nothing we can do. |
Hi there,
I've found your very useful Elixir lib but I'm facing with an issue when I'm using AES-256-CBC private keys
Test case that fails:
test/ex_public_key_test.exs
insert at line : 32
"-aes256",
so instead of
we have now
and the test
mix test test/ex_public_key_test.exs:79
fails
if you replace "-aes256" with "-aes128" . test/ex_public_key_test.exs is OK
Any idea?
Many thanks in advance
Daniel
The text was updated successfully, but these errors were encountered: