Skip to content

SSL Certificate Chain Contains RSA Keys Less Than 2048 bits

Fabien edited this page May 22, 2024 · 1 revision

Overview

The use of RSA keys less than 2048 bits in SSL certificate chains presents a significant security risk due to the insufficient encryption strength such keys offer. Modern cryptographic standards recommend using RSA keys of at least 2048 bits to ensure adequate security against brute-force attacks.

  • Severity: High

Impact

Using RSA keys with less than 2048 bits can lead to several security issues:

  • Compromised Communications: Easier for attackers to decrypt SSL/TLS communications, potentially leading to data breaches.
  • Reduced Trust: Weakens the trustworthiness of the website's SSL certificate, impacting user confidence and compliance with security standards.
  • Vulnerability to Cryptanalysis: Smaller key sizes are more susceptible to cryptanalysis and other forms of cryptographic attacks.

Cause

This vulnerability arises when SSL certificates in the chain are generated with RSA keys under 2048 bits, often due to:

  • Legacy systems or software that have not been updated to support stronger encryption standards.
  • Misconfiguration during the certificate generation process.
  • Lack of enforcement of security policies regarding minimum key lengths.

Solution

To mitigate this vulnerability and strengthen the security of SSL/TLS communications, the following steps should be taken:

  1. Regenerate Certificates:
    • Contact your certificate authority (CA) to issue new certificates with RSA keys of at least 2048 bits.

    • If managing your own certificates, generate new keys using recommended cryptographic standards:

      openssl genrsa -out mydomain.key 2048
  2. Configure Servers:
    • Update server configurations to enforce the use of stronger keys. For example, in Apache and Nginx, ensure that the SSL certificate and key directives point to the new certificates.
  3. Test Certificate Chain:
    • Use tools like OpenSSL to verify the key sizes in your certificate chain:

      openssl x509 -in certificate.crt -text -noout | grep "Public-Key"

Examples

N/A

References

Additional Resources

N/A

Microsoft Related Vulnerabilities

SSL/TLS Related

OpenSSL Related Vulnerabilities

Apache Related Vulnerabilities

Java/Oracle Related Vulnerabilities

Miscellaneous Vulnerabilities

Miscellaneous

  • Template -> Use this template for new vulnerabilities
Clone this wiki locally