Generate private key and csr file
openssl req -new -newkey rsa:2048 -nodes -keyout server.key -out server.csr
server.key: it is the private key used on the TLS protocol.
server.csr: it is the required certificate signing request.
If all three certificates are listed separately, use the command: