When deploying a new linux machine for a new domain and you intend on using LAMP services, you will most likely need to create an SSL certificate. Below is the command you will need to run from any directory to create the CSR request and eventual certificate key.
openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr
Once you have run the command, you will be prompted to input some information such as company name, admin email, department and eventually a password. Please use a password with no spaces and keep it “simple” to letters and numbers. Once this is completed the two files will be created in your working directory.
Run the below command to output the contents to your terminal shell where you will be able to copy them from –
cat yourdomain.csr
You will want to upload the contents of the CSR file to your desired SSL certificate authority and download your certificate.
Leave a Reply
You must be logged in to post a comment.