-
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
ExPublicKey.generate_key/2 fails. #26
Comments
Which version of Elixir and Erlang are you using? What operating system? |
|
I think I see what the issue is. I can probably get it fixed in the next couple days unless you would rather send a pull-request my way with an update. |
@ntrepid8 Gladly yes. Tell me what's wrong and I'll fix it if I can. |
@hickscorp The function you're calling is def generate_key(bits, public_exp), do: generate_key(:rsa, bits, public_exp) therefore you should call it like this {:ok, key} = ExPublicKey.generate_key(2048, 65537) or more simply {:ok, key} = ExPublicKey.generate_key() which has those default parameters. |
@tcitworld Thanks, but what I was pointing out is a documentation inconsistency. The docs seem to define a passing doctest reading |
Straight from the docs:
But this is what I get when running it:
Using 0.9.0.
The text was updated successfully, but these errors were encountered: