I posted this question already on SO, but as it is not really a programmin question I thought it might be a better place to ask here:
I want to setup a new SSL certificate store for generating SSL certs (server certs (nginx) and client certs (linux/windows devices))
I'm searching already for quite some time and I'm not sure I fully understand. especially as some articles are a few years old.
Many articles just talk about RSA and seem to recommend 2048 or 3072 though mentioning that 2048 is today probably still the best choice ( https://expeditedsecurity.com/blog/measuring-ssl-rsa-keys/ )
I found for example one Article ( https://paragonie.com/blog/2019/03/definitive-2019-guide-cryptographic-key-sizes-and-algorithm-recommendations ) but it seems to talk mostly about key encryption as @dave_thompson_085 pointed out on SO
stating in the section "Asymmetric ("Public Key") Encryption"
Use, in order of preference:
X25519 (for which the key size never changes) then symmetric encryption.
ECDH with secp256r1 (for which the key size never changes) then symmetric encryption.
RSA with 2048-bit keys.
The security of a 256-bit elliptic curve cryptography key is about even with 3072-bit RSA.
Although many organizations are recommending migrating from 2048-bit RSA to 3072-bit RSA (or even 4096-bit RSA)
in the coming years, don't follow that recommendation. Instead migrate from RSA to elliptic curve cryptography,
and then breathe easy while you keep an eye out for post-quantum cryptography recommendations.
However they don't mention the impact on server CPU usage compared to RSA 2048/3072/4048. I also didn't find many other articles suggesting to switch to Elliptic curve algorithms.
Another article ) https://www.thesslstore.com/blog/you-should-be-using-ecc-for-your-ssl-tls-certificates/ _ tries to promote ECC instead of RSA, but comments on the article state, that ECC is less safe than RSA if quantum computers kick in. And the article cites nowhere numbers for what performance improvement to expect when using ECC.
https://crypto.stackexchange.com/questions/1190/why-is-elliptic-curve-cryptography-not-widely-used-compared-to-rsa mentions potentially legal issues and fear of being sued.
Though CPU usage is not a major issue Id still like to get some idea as I'd like to use the same CA and cert store also on devices like raspberries.
So what is today the best choice for certificate key algorithms and key sizes for server certs (old internet explorer not required but PCs, tablets, mobile phones being used today should be able to connect to the server
and what's the best choice for client certs (will not be used on mobile devices)?
I kind of tend to RSA 2048, but I'm really not that sure I interpret all the articles correctly and don't like to make choices based on feelings.