Prerequisites:
- Linux Operating System
- Command-line terminal
Open a Terminal:
- Open a terminal window on your Linux system.
Use the following OpenSSL command to generate CSR key and private key
[ sudo openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.com.key -out yourdomain.com.csr ]
- Replace “yourdomain.com.key” with the name you want for your private key file.
- Replace “yourdomain.com.csr” with the name you want for your CSR file.
You are about to be asked to enter information that will be incorporated
into your certificate request:
- Country Name (2 letter code) [AU]:
- State or Province Name (full name) [Some-State]:
- Locality Name (eg, city) []:
- Organization Name (eg, company) [Internet Widgits Pty Ltd]:
- Organizational Unit Name (eg, section) []:
- Common Name (e.g. server FQDN or YOUR name) []: (eg: yourdomain.com)
- Email Address []:
- A challenge password []:(optional)
- An optional company name []:(optional)
Review and Save:
- The CSR will be saved in the yourdomain.com.csr file. You can view its contents with a text editor.
Command [ cat yourdomain.com.csr ]
- The Pvt Key will be saved in the yourdomain.com.key file. You can view its contents with a text editor.
Command [ cat yourdomain.com.key ]
- You can now use the CSR to request an SSL certificate from a Certificate Authority (CA). The CA will provide you with the SSL certificate once they have verified your domain ownership.
- Once you receive SSL certificate from a Certificate Authority (CA), you need to share pvt key(which is generated along with csr key) and ssl certificates bundle to us(devops@automatedpros.io) for installing ssl for your website.