Project — Applied Cryptography

CertForge

A hands on lab that walks a weak PKI failure end to end. Crack a flawed authority key, forge a trusted client certificate, and walk straight through mutual TLS.

Bash OpenSSL Python RSA Mutual TLS

Digital trust comes down to one rule: nobody can work out a certificate authority's private key from its public one.

What it is

Public Key Infrastructure, or PKI, is the certificate system that proves identity across the internet. CertForge walks through a full PKI collapse in five stages. It grabs the certificate chain from a live connection or local files, finds the root authority, cracks its private key by factoring a weak RSA math modulus, forges a client certificate signed with that recovered key, and verifies it with OpenSSL before presenting it to a server demanding mutual TLS, where both sides must prove who they are to connect.

What it proves

It pairs a built in key recovery engine with a catalog of factoring attacks indexed by the exact key generation flaw each one exploits, plus a generator that plants weak keys for safe practice. It is scoped for the lab on purpose: attacks only bite on planted flaws, and the test suite confirms it recovers nothing from a strong key. You learn the math failure firsthand without shipping a live weapon.