0
$\begingroup$

I have the values of RSA public exponent $e$, the secret exponent $d$ and the modulus $n$.

How can I create (for example using openssl) a self-signed certificate using the RSA key $(n,d), (n,e)$? Is it even possible?

Second question: Is it possible to get the factors of $n$ from $(n,d), (n,e)$?

$\endgroup$
  • $\begingroup$ 2. $(n,d)$ in usually contains information about $p$ and $q$ so that the calculations can use CRT. $\endgroup$ – kelalaka Oct 29 '19 at 20:56
1
$\begingroup$

Yes, it is possible to generate a self signed certificate. If you've got a private key that can sign with it using the required signature algorithm then that should always be possible. Tool usage (such as openssl, which can be used to generate self signed certificates) is off topic here, but basically you just create the To Be Signed (TBS) part of the certificate and then, well, you sign it.

Yes, you can get the factors from this answer which is about calculating the CRT parameters, but those include the $p$ and $q$ values.

|improve this answer|||||
$\endgroup$
  • $\begingroup$ Thank you, the link helped me a lot. $\endgroup$ – gorte Oct 29 '19 at 21:41

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for?Browse other questions tagged or ask your own question.