Tag Archives: OpenSSL

Which RSA key goes with which?

I had a set of keys in my Mac OS X Keychain and no clue which public key and private key belonged together. This is how I figured out if a specific public key A paired with a private key B. Export public key A to file A.pem, then find its modulus: cat A.pem |