The Certificate Authority (CA) needs to create the root key and root CA, forming the top root pair for your CA. In general, the root key is not used to sign server or client certificates. The root CA is used to sign Intermediate CA’s which are then trusted to sign on behalf of the root CA.
Create a Directory to Store Keys and Certificates
Create demo folder for storage
Generate the CA and the Server Certificate
Download and install OpenSSL
It is an open source library that provides tools for creating digital SSL/TLS certificates
In this example of generating CA and Server Certificates, use this tool.