Generate a Let’s Encrypt Certificate for Silo with Certbot
Let’s Encrypt is a new free, automated, and open source, Certificate Authority.
Certbot is a console based certificate generation tool for Let’s Encrypt.
In this recipe, we will generate a Let’s Encypt certificate using Certbot. This certificate will then be deployed for use in the MinIO server.
1. Prerequisites
- Install MinIO Server using the Red Hat Linux deployment guide.
- Install Certbot from the Certbot website.
2. Dependencies
- Port 443 for https needs to be open and available at time of executing
certbot. - Certbot needs root access while executing because only root is allowed to bind to any port below 1024.
- We will be using our own domain
myminio.comas an example in this recipe. Replace with your own domain under your setup.
3. Recipe Steps
Step 1: Install Certbot
Install Certbot by following the documentation at https://certbot.eff.org/.
Step 2: Generate Let’s Encrypt cert
Step 3: Verify Certificates
List your certs saved in /etc/letsencrypt/live/myminio.com directory.
Step 4: Set up SSL on MinIO Server with the certificates.
The certificate and key generated via Certbot needs to be placed inside user’s home directory.
Step 5: Change ownership of certificates.
Step 6: Start MinIO Server using HTTPS.
If you are not going to run MinIO with root privileges, you will need to give MinIO the capability of listening on ports less than 1024 using the following command:
Now, you can start MinIO Server on port “443”.
If you are using dockerized version of MinIO then you would need to
Step 7: Visit https://myminio.com in the browser.