How to add an SSL certificate for a subdomain

Aneh Thakur
Aneh Thakur
1 min read
SSL (Secure Sockets Laye) is a protocol for establishing an authenticated and encrypted connection between your computer and server. SSL makes the connection secure and also protect the sensitive data which is sent between the server and client.

Secure Web Browsing

SSL is a secure certificate that offers three-layer of protection Authenticity, Data Integrity, Encryption.
  1. Authenticity: server presenting the certificate is in possession of the private key that matches the public key in the certificate.
  2. Data Integrity: It guarantees that your data cannot be modified or corrupted during transfer without being detected.
  3. Encryption: This means that all data send between the browser (client) and website (server) is encrypted.
Look for the following indicators in your browser’s address bar to be sure that a website you are visiting is protected with a trusted SSL certificate

Steps to install the SSL certificate for a subdomain
Step 1. Point your subdomain to your server
Step 2. Now you need to log in to your server as an admin or superuser.
Step 3. For this tutorial, I am using Let’s Encrypt – Free SSL/TLS Certificates.
Step 4. Now you need to run this command sudo certbot --nginx -d to add an SSL certificate to your subdomain replace with your subdomain and hit enter It will ask for some basic information like email on time on installation enter the required information and done your SSL certificate is now installed and your site is ready to serve on HTTPS.

Original Post at:-
Aneh Thakur
Written By

Aneh Thakur

Trinity Tuts

Trinity Tuts

Android, Php, Web Designing best tutorial. Follow to join Trinity Tuts + followers.

You may also like