Search code examples
sslkeystorecsr

Convert/generate the keystore file from the csr file?


To apply a certificate, first I created a keystore file and then a csr file. Then I pass the csr file to the signing authority to request a certificate. Signing authority provided me the certificate, now I need to import the certificate into keystore file. But unfortunately I have lost the originally generated keystore file, but I have the csr file.

My Question: Is there any way to convert/generate the original keystore file from the csr file?

Thanks in advance.


Solution

  • You cannot. The CSR only contains PublicKey.

    It is explained here and here.

    You can check with the Certificate Authority if they can reissue a new Certificate for a new request.