Sender and receiver both have pair of private and public keys.
To send encrypted message sender is using reveiver's public key.
Prior to that he can encrypt signature using his private key.
Receiver needs to decrypt message using his private key.
To decrypt signature and to authenticate the sender he is using sender's public key.
Certificate Signing Requests (CSRs)
A CSR consists mainly of the public key of a key pair, and some additional information. Both of these components are inserted into the certificate when it is signed.
Whenever you generate a CSR, you will be prompted to provide information regarding the certificate. This information is known as a Distinguised Name (DN). An important field in the DN is the Common Name (CN), which should be the exact Fully Qualified Domain Name (FQDN) of the host that you intend to use the certificate with.
Ref: