I have a couple keys that seem to have been generated with the same names. I would like to know which public key match up with which private keys so I can rename/delete them. Is this something that is important (keeping around the public key) or does a public key get generated each time you request a certificate?
I guess you have been able to get around your problem as this is an old thread, but I am just writing a reply for any future reference.
The basic idea is to export your private and public keys, and use openssl to view their modulus. Matching private/public keys will have the same modulus.
Here is how to see the modulus of a private key:
Here is how to see the modulus of a public key:
Please also note that in fact, you could also delete your public keys and re-create them from the private keys (that way you could be certain of your matching pairs). To create the matching public key from a private key use the following openssl command: