Skip to content

Files

Latest commit

 

History

History
31 lines (29 loc) · 960 Bytes

SSL_Cert_Apache2.md

File metadata and controls

31 lines (29 loc) · 960 Bytes

How to Enable HTTPS in Your Domain Hosted on Linux Remote Server or VPS

Let's Encrypt is a non-profit certificate authority run by Internet Security Research Group that provides X.509 certificates for Transport Layer Security encryption at no charge.

  • To Access Remote Server via SSH
Syntax:- ssh -p PORT USERNAME@HOSTIP
Example:- ssh -p 22 root@216.32.44.12
  • Install Certbot and python3-certbot-apache
apt install certbot python3-certbot-apache
- Certbot is a free, open source software tool for automatically using Let’s Encrypt certificates on manually-administrated websites to enable HTTPS.
- python3-certbot-apache is a Apache plugin for Certbot. 
  • Verify Web Server Ports are Open and Allowed through Firewall
ufw status verbose
  • Obtain an SSL certificate
certbot --apache
  • Check Status of Certbot
systemctl status certbot.timer
  • Dry Run SSL Renewal
certbot renew --dry-run