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

Is RSA keys hardcoded to 2048 bits? #24

Closed
m-barthelemy opened this Issue Jan 12, 2018 · 2 comments

Comments

2 participants
@m-barthelemy
Copy link

m-barthelemy commented Jan 12, 2018

I couldn't find any option to specify a custom private key size.
Maybe I haven't looked hard enough and in that case I'm sorry for the noise.
I saw in certes/src/Certes/Crypto/RS256Algorithm.cs that GenerateKey() seems to have 2048 hardcoded.

Is there any plan to allow generating 3072 and 4096 bits keys?
Thanks!

@fszlin fszlin self-assigned this Jan 12, 2018

@fszlin

This comment has been minimized.

Copy link
Owner

fszlin commented Jan 12, 2018

Hi @m-barthelemy, yes, the key size is hardcoded when generating RSA key. You should be able to import RSA key pair with different key size and use it for CSR.

It is indeed a good suggestion to support creating RSA with specific key size, just need to figure what the API would look like.

@stale

This comment has been minimized.

Copy link

stale bot commented Nov 1, 2018

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the wontfix label Nov 1, 2018

@stale stale bot closed this Nov 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment