Openssl things

Extract public key from certificate :

openssl x509 -pubkey -noout -in certificate.pem

Getting private key from csr

openssl rsa -in csr.pem -text