# Securing Your Ubuntu VPS: A Step-by-Step Guide to Free SSL with Let's Encrypt

In today's digitally driven landscape, the security of your online assets is paramount. Whether you're running a personal blog, an e-commerce site, or a web application, safeguarding sensitive information and establishing trust with your users is non-negotiable. One crucial aspect of this security framework is the implementation of SSL (Secure Socket Layer) or its successor, TLS (Transport Layer Security), which encrypts the data exchanged between your server and your visitors' browsers.

In this blog post, we'll walk you through the process of securing your Ubuntu VPS (Virtual Private Server) with the industry-standard security protocol, SSL. What's more, we'll explore the power of Let's Encrypt, a free, automated, and open Certificate Authority that enables you to obtain and install SSL certificates effortlessly.

Whether you're a seasoned server administrator or a newcomer to the world of VPS management, this guide aims to simplify the often complex process of implementing SSL on your Ubuntu VPS. Join us on this journey towards a more secure and trustworthy online presence, as we delve into the intricacies of setting up Free SSL with Let's Encrypt on your Ubuntu VPS. Let's make your digital space safer and more resilient together.

## Login with SSH in your VPS

### With Password

Login in server with ssh \[ Replace `username` with actual username and `ip` with actual IP address of the server \]

```bash
ssh username@ip
```

### With Private Key (.pem)

Login in server with ssh (with private key) \[ Replace `username` with actual username and `ip` with actual IP address of the server \]

```bash
ssh -i path/to/private_key.pem username@ip
```

## Install CertBot

First update the local package index

```bash
sudo apt update
```

Then the certbot command

### For Apache server

```bash
sudo apt install certbot python3-certbot-apache
```

Install certificate

```bash
sudo certbot --apache
```

### For NginX

```bash
sudo apt install certbot python3-certbot-nginx
```

Install certificate

```bash
sudo certbot --nginx
```

Then follow the instructions and you are done. 🚀

Thank you
