3 ms·
> OpenSSL decided to use a “512 bit long modulus”, the default. We’re told: “don’t roll your own crypto; instead trust standard tools like OpenSSL”. The modulus
by beefhash 7y ago
> OpenSSL decided to use a “512 bit long modulus”, the default. We’re told: “don’t roll your own crypto; instead trust standard tools like OpenSSL”. The modulus length is a good example of why: a wrong value results in a trivially breakable key, and you the user shouldn’t need to know what the right value is. So OpenSSL chooses a sensible modulus length for you.
Checking the OpenBSD man page for the LibreSSL genrsa, it does seem to generate 2048-bit RSA keys by default[1].
Perhaps Apple just stuck with an older default (for backwards compat) or perhaps this wasn't changed yet in the old version of LibreSSL that Apple uses?
[1] https://man.openbsd.org/openssl#GENRSA https://man.openbsd.org/openssl#GENRSA
- JdeBP 7y ago2.2.7 came out in May 2016. The switch to 2048 bits was in May 2014. * https://github.com/libressl-portable/openbsd/commit/30eb68d7caa1f7d4cf5dafa69d294567f5213500#diff-a249ba52ce01b7d5770a4e6f88d10640 https://github.com/libressl-portable/openbsd/commit/30eb68d7...