Attach SSL certificate of domain on apache server ubuntu
Follow these instructions to generate a certificate signing request (CSR) for your Apache Web server. When you have completed generating your CSR, cut/copy and paste it into the CSR field on the SSL certificate-request page.
To Generate a Certificate Signing Request for Apache 2.x
- Log in to your server’s terminal (SSH).
- At the prompt, type the following command: openssl req -new -newkey rsa:2048 -nodes -keyout yourdomain.key -out yourdomain.csr Note: Replace yourdomainwith the domain name you’re securing. For example, if your domain name is coolexample.com, you would type coolexample.key and coolexample.csr.
- Enter the requested information:
- Common Name: The fully-qualified domain name, or URL, you’re securing.
If you are requesting a Wildcard certificate, add an asterisk (*) to the left of the common name where you want the wildcard, for example *.coolexample.com. - Organization: The legally-registered name for your business. If you are enrolling as an individual, enter the certificate requestor’s name.
- Organization Unit: If applicable, enter the DBA (doing business as) name.
- City or Locality: Name of the city where your organization is registered/located. Do not abbreviate.
- State or Province: Name of the state or province where your organization is located. Do not abbreviate.
- Country: The two-letter International Organization for Standardization (ISO) format country code for where your organization is legally registered. Note: If you do not want to enter a password for this SSL, you can leave the Passphrase field blank. However, please understand there might be additional risks.
- Common Name: The fully-qualified domain name, or URL, you’re securing.
- Open the CSR in a text editor and copy all of the text.
- Paste the full CSR into the SSL enrollment form in your account.
After That
- Goto ssl certificate in your Godaddy Account
- Create New Certificate
- Paste your CSR text into CSR text box in your account
- Accept and Confirm
- if Your certificate is already generated for prev domain or server
- Select Re-Key
- Paste your CSR text into CSR text box in your account
- Accept and Confirm
- After waiting few minutes
- Download Generated file
- Save it on your server
- Goto /etc/apache2/sites-available/
- open file with sudo in nano editor file name – default-ssl.conf
- type these two lines into this file
- SSLCertificateFile /var/www/html/cert/a64995d1bdfa903a.crt
SSLCertificateKeyFile /var/www/html/cert/authorizedtech.pro.key - as per your crt and key file path
Discover more from Soa Technology | Aditya Website Development Designing Company
Subscribe to get the latest posts sent to your email.