How to Verify if a CSR Was Used to Generate a Certificate?

To determine whether a Certificate Signing Request (CSR) was used to generate a particular certificate, follow these simple steps:

openssl req -in your_csr_file.csr -noout -pubkey > csr_pubkey.pem
1. Extract and Compare Public Keys

Extract Public Key from the CSR