Certificate Key Algorithms: RSA 2048 rumours

A note about rumours of RSA 2048 being “broken” by foundational models in the last few days. Most reputable news sources are saying this is not true. (Reuters). Of course, it may be true, but not publicly disclosed. Who knows?

Or it may be true in future.

For those not up to speed, RSA2048 is used as the algorithm that “links” a one certificate to another. Most Certificate Authorities run a long-term “root” CA, often kept offline, and then link this via a signing algorithm to an “issuing” CA (of shorter lifespan). This “issuing” CA is the one that signs your issued TLS cert (also called a leaf).

Both those two signatures, Root -> Issuing, and Issuing -> Leaf , uses a signing algorithm. It’s usually the same algorithm. For years its used the RSA algorithm, with an ever increasing key length to increase the complexity/strength.

Being able to break this chain of trust means fake certificates could be produced, used to then intercept traffic and fool clients into trusting the fake certificates.

Your security relies on end-to-end strong encryption, and not being intercepted and fooled in the middle.

Hence we look to create a new key signing algorithm. That new algorithm needs to be fast to verify, and not easy to break. It requires clients software to support it, and then certificate authorities to issue certs using it — in both their signatures (Root -> Issuing, Issuing -> Leaf).

Enter ECDSA, based on eliptical curves, and actually first introduced more than 20 years ago as a concept. Today, many Certifiate Authorities support ECDSA based certificate chains, as does a log of client software.

For web browsers, this is widely supported: https://caniuse.com/?search=ECDSA

But more than web browsers use TLS, and need strong security. If you read email on a local client (ie, not webmail, but a local mail application) then it may be using IMAPS to fetch, and SMTPS to send email. Both of these protocols (on different ports and to different services) use TLS certificates. Both have to now support having inbound endpoints with ECDSA certificates.

Your selected mail service (MTA, or SMTP service) which is then going to pass your email to the next host you are sending to (outbound connections), also needs to support connecting to (and validating) an endpoint that has an ECDSA certificate.

ECDSA certificates have a higher cryptographic “strength” on shorter key sizes, without the performance penalties that RSA is starting to show on longer keys.

So while the rumour of RSA 2048 may be just hat – its worth taking stock of where your certificates are, and what key algorithm they use, and if you are currently able to upgrade to ECDSA based certificates. It may be that the software you are using needs an update to support these certificate types – you should probably go check that now, and work out what your software maintenance plan looks like ASAP.

AWS Certificate Manager: now with free exportable certificates

It’s a tough time for anyone in the AWS Cloud space right now: it’s the Re:Invent period, the annual global AWS Cloud conference, during which AWS typically makes major announcements of improvements in the cloud, both evolutionary, and revolutionary. During this time, the knowledgeable engineers struggle to keep up to date, forced to understand what the changes mean to their services; the possibilities that have opened up to innovate, optimise, better protect, or simplify their operations.

The previous month has been similarly challenging: the period known as Pre:Invent. During this lead-up period to Re:Invent, even more announcements come out that perhaps have not been scheduled to be made from the stage during Re:Invent.

This blog post is triggered on one thing. AWS Certificate Manager. Its the cornerstone of automated TLS certificate issuance for cloud based services, for two major reasons:

  • Issuance & deployment of certificates is automated within AWS
  • Publicly trusted certificates have been free for certificates used on AWS_managed services since the ACM service launched

A while back AWS added the ability to obtain publicly trusted certificates that can be used outside of AWS, for a cost. It was just a few dollars, but that was infinitely more than what Lets’ Encrypt charged – free.

Today, that’s changed, with exported ACM certificates now also free.

Buried in the announcement about Pro and Essential plans for ACM, comes this line:

Public certificates you request through ACM now come at no additional charge, including the ones you export and run anywhere

Coupled with previously-announced ACME protocol support, this means you can now use the one trusted CA for all purposes, should you chose to do so.

However, you should note the limits on ACME protocol usage as the API for this, the way that certificates are automatically (scripted) issued and re-issued. TLS Certificates are being mandated (by the Browser/CA Forum governing industry body) to be shorter in life span. As I write this, the maximum lifespan is 200 days, and by March 2027 it will be 100 days, finally ending up at 47 days in March 2029. This means you’ll be replacing those certificates more and more. So while today a certificate would need 2 deployments per year, that will increase to more then 7.

Countering this is a high limit on the number of ACME protocol requests: 30,000, and that for each 10,000 requests after this it is just US$0.50 (fifty US cents).

You would need to be maintaining more than 3,863 certificates to exceed this when re-issuing every 47 days. For most this would be unlikely; for those who are, this is very cost effective.

The power of automation of the certificate authority makes the economics of this stand up.