Generating a Certificate Signing Request (CSR) – Ubuntu, OpenSSL

openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr