Skip to content
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

Could you describe purpose of cert fixtures and their cryptokey lengths. #185

Closed
lolgear opened this issue Jan 26, 2017 · 2 comments
Closed

Comments

@lolgear
Copy link

lolgear commented Jan 26, 2017

You have several pem files inside certs folder.
They are algorithm_length_wrong_privacy.

But you have rsa keys which are longer than esa keys.
Could you describe why they are longer?

Also, could you share script that generate keys?

Thanks!

@excpt
Copy link
Member

excpt commented Feb 8, 2017

The pem files are there just for the tests. To avoid creating new certs on the fly every time when running the tests.

RSA keys with a size smaller than 1024 bit are insecure and can be recomputed.
RSA keys are always bigger in size on the same level of security than ECDSA keys.

ECDSA is a much more sophisticated algorithm that is based on elliptic curves and super large numbers and mathematics and unicorns and dragons and black wizards practising black magic and is currently nearly unbreakable and requires less space.

The keys are "standard" sized. I don't have the script any longer due to a disk crash a few months ago and incomplete backups.

If I may find the script anywhere I will let you know and post the answer here.

A little more about RSA vs. ECDSA:
http://crypto.stackexchange.com/questions/3216/signatures-rsa-compared-to-ecdsa?answertab=votes#tab-top

@lolgear
Copy link
Author

lolgear commented Feb 8, 2017

@excpt thanks for information!

@excpt excpt closed this as completed Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants