top | item 7578224

(no title)

dogsky | 12 years ago

Interesting. But from got the prime1 and prime2, from there how do you obtain the private certificate?

discuss

order

alexkus|12 years ago

You now know the two primes (p,q) which multiply together to make n (the public key modulus). We also know e (the public key exponent).

d (the private key) is:-

    d = e^-1 mod ((p-1)(q-1))
To work this modular inverse out you use the extended Euclidean algorithm.

This is why you need to know the factorisation of n=(p*q). You can't compute d (the private key) with just the composite n.