---
title: "Where is RSA hiding in your codebase? A guide to finding it and moving off it"
description: "RSA isn't broken, but specific uses are being retired: RFC 10015 forbids static RSA key exchange (and deprecates finite-field DHE) in (D)TLS 1.2, and GitHub removes the SHA-1 `ssh-rsa` signature type on January 13, 2027."
url: "https://swe.quest/articles/where-is-rsa-hiding-in-your-codebase-a-guide-to-finding-it-and-moving-off-it-894a374e420f4140"
canonical: "https://sourcegraph.com/blog/find-and-migrate-rsa-across-your-codebase"
source: "Sourcegraph"
published: "2026-11-30"
difficulty: "medium"
kind: "How-to"
reading_minutes: 7
tags: ["cryptography","security","networking","identity-auth"]
---

# Where is RSA hiding in your codebase? A guide to finding it and moving off it

A post on [Sourcegraph](https://swe.quest/sources/sourcegraph.md), published 2026-11-30, 7 min read, How-to. Original: [https://sourcegraph.com/blog/find-and-migrate-rsa-across-your-codebase](https://sourcegraph.com/blog/find-and-migrate-rsa-across-your-codebase)

## Summary

RSA isn't broken, but specific uses are being retired: RFC 10015 forbids static RSA key exchange (and deprecates finite-field DHE) in (D)TLS 1.2, and GitHub removes the SHA-1 \`ssh-rsa\` signature type on January 13, 2027. The guide gives Code Search regex queries to inventory explicit \`TLS\_RSA\_WITH\_\*\` suites, nginx \`ssl\_ciphers\` lists, SSH algorithm overrides, RSA key generation and OAEP/PKCS1v15 calls, JWT RS/PS algorithms and unlabeled PEM keys, stressing that hits are review candidates to verify against live handshakes. Migration should go one contract at a time: drop static RSA suites while keeping ECDHE-RSA and RSA certificates, upgrade SSH clients to rsa-sha2 signatures without rotating keys, use OAEP for new encryption, and overlap JWT keys with distinct \`kid\` values, using canaries and owner review.

Written by swe.quest, not by the author.

**Difficulty:** Medium: assumes a working developer; shows how it is built or done

## Topics

- [Cryptography](https://swe.quest/tags/cryptography.md) (Security)
- [Security](https://swe.quest/tags/security.md) (Security)
- [Networking](https://swe.quest/tags/networking.md) (Infrastructure)
- [Identity & auth](https://swe.quest/tags/identity-auth.md) (Security)

## Prerequisites

- TLS cipher suites ([easy posts on Cryptography](https://swe.quest/tags/cryptography.md?difficulty=easy))
- SSH key authentication ([easy posts on Identity & auth](https://swe.quest/tags/identity-auth.md?difficulty=easy))
- JWT signing basics
- public-key cryptography ([easy posts on Cryptography](https://swe.quest/tags/cryptography.md?difficulty=easy))

## Keywords

RSA, RFC 10015, TLS 1.2, ssh-rsa, RS256, OAEP, Sourcegraph Code Search, nginx

## Related posts

- [Common annotated security keys](https://swe.quest/articles/common-annotated-security-keys-5586739c75da0c4f.md): Engineering@Microsoft · 2024-09-25 · Easy · 3 min read · Security, Supply chain security, Static analysis
  Microsoft's Common Annotated Security Standard (CASK) extends GitHub's identifiable-token approach of fixed signatures plus checksums, so leaked secrets can be detected with near-zero false positives.
- [Deploying key transparency at WhatsApp](https://swe.quest/articles/deploying-key-transparency-at-whatsapp-0e23deb403e7d86e.md): Meta Engineering · 2023-04-13 · Medium · 9 min read · Cryptography, Communications, Rust, Security
  WhatsApp now automatically verifies end-to-end encryption keys using key transparency: the server maintains an append-only Auditable Key Directory (AKD) mapping accounts to public keys, and every change emits a privacy-preserving audit proof to public storage that anyone can verify.
- [JSON Web Keys (JWK): Rotating Cryptographic Keys at Zalando](https://swe.quest/articles/json-web-keys-jwk-rotating-cryptographic-keys-at-zalando-70034281fe17c9eb.md): Zalando Engineering · 2025-01-20 · Medium · 4 min read · Identity & auth, Cryptography
  Zalando's OIDC identity provider rotates its JWT signing keys automatically on a schedule, using a phased process so clients are never disrupted.
- [Introducing JWT Signing Keys](https://swe.quest/articles/introducing-jwt-signing-keys-979b097fede857fb.md): Supabase · 2025-07-14 · Medium · 5 min read · Identity & auth, Cryptography, PostgreSQL
  Supabase Auth now supports asymmetric JWT signing keys (RSA or elliptic curve), letting apps verify tokens locally using public keys published at a JWKS endpoint instead of calling the Auth server or sharing a forgeable secret.
- [Cultivating a robust and efficient quantum-safe HTTPS](https://swe.quest/articles/cultivating-a-robust-and-efficient-quantum-safe-https-15f91f978ba80408.md): Google Online Security Blog · 2026-02-27 · Easy · 5 min read · Cryptography, Browsers, Security
  Chrome will not add post-quantum X.509 certificates to its root store and is instead pursuing Merkle Tree Certificates (MTCs), being standardized in the IETF PLANTS working group.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
