I use these commands to create a self-signed certificate, subject's key and CSR, and subject's signed certificate:
Root CA:
openssl req -new -sha256 -x509 -days 7300 -out ca.crt -keyout ca.key.pem -nodes
Server CSR:
openssl req -new -sha256 -out server.csr -keyout server.key.pem -nodes
Sign with CA:
openssl ca -cert ca.crt -days 3650 -md sha256 -in server.csr -out server.crt
The CA signs the CSR with its private key, does this mean that the root certificate (ca.crt) contains the private key?