Verified Commit ada21a0e authored by Elias Ojala's avatar Elias Ojala
Browse files

Minor changes to the Certbot document

parent 9cea09ea
......@@ -4,8 +4,8 @@ server {
server_name _;
access_log /dev/null;
error_log /dev/null;
access_log off;
error_log off;
location / {
return 301 https://$host$request_uri;
......
<!-- TITLE: Certbot -->
<!-- SUBTITLE: My certbot stuff -->
---
title: Certbot
permalink: /certbot/
---
### Required packages (Debian 9)
* [certbot](https://packages.debian.org/stretch-backports/certbot) (`stretch-backports`)
* [python3-certbot-dns-cloudflare](https://packages.debian.org/stretch-backports/python3-certbot-dns-cloudflare) (when using Cloudflare DNS, `stretch-backports`)
`sudo apt install certbot python3-certbot-dns-cloudflare -t stretch-backports`
* [certbot](https://packages.debian.org/stretch/certbot)
<!--
### Required packages (CentOS 7)
* python2-certbot
* python2-certbot-dns-cloudflare
-->
## Wildcard certificate (DNS, Cloudflare)
```bash
......@@ -26,6 +18,8 @@ sudo certbot --server https://acme-v02.api.letsencrypt.org/directory \
-d *.example.com -d example.com certonly
```
-->
## Wildcard (DNS, Manual)
```bash
......@@ -102,8 +96,8 @@ sudo mkdir /etc/nginx/sites-available/_utilities
sudo rm /etc/nginx/sites-enabled/default -rf
sudo nano /etc/nginx/snippets/ssl-params.conf
sudo nano /etc/nginx/sites-available/_utilities/http-redirect
sudo ln -s /etc/nginx/sites-available/_utilities/http-redirect /etc/nginx/sites-enabled/
sudo nano /etc/nginx/sites-available/_utilities/http-redirect
```
## http redirect
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment