Hello All,

I want to verify certificate generated using following steps.

1. Generate RSA key 1
2. Generate RSA key 2
3. Generate Certificate signing request(CSR) with input key as key 1
4. Generate certificat from CSR generated using private key Key 2
using following command.

openssl req -x509 -key key2_private -in csr -out cert.pem -days 100

5. I want to verify the certificate. I tried verify command with -
CAfile option also but it is giving error while verifying the
certificate.


Can you tell me how to verify certificate generated such a way? I'm
using OpenSSL 0.9.8g in Red Hat linux.

Thanks,
Hardik