Generate private key and CSR

openssl

( _fd="private.key" ; _fd_csr="request.csr" ; _len="2048" ; \
openssl req -out ${_fd_csr} -new -newkey rsa:${_len} -nodes -keyout ${_fd} )
click the source code to copy install openssl on any operating system with command-not-found.com