Remove OCSP stapling

https://letsencrypt.org/2024/07/23/replacing-ocsp-with-crls.html
This commit is contained in:
Tommy 2024-07-26 06:52:58 -07:00 committed by GitHub
parent 6e6b7c3c16
commit faa35bf11b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
7 changed files with 3 additions and 19 deletions

View File

@ -1,5 +1,4 @@
certbot certonly --webroot --webroot-path /srv/nginx --no-eff-email \
--key-type ecdsa --must-staple \
--deploy-hook "certbot-ocsp-fetcher -o /var/cache/certbot-ocsp-fetcher" \
--key-type ecdsa
--cert-name hostname.of.your.server \
-d hostname.of.your.server

View File

@ -1,5 +1,4 @@
certbot certonly --webroot --webroot-path /srv/nginx --no-eff-email \
--key-type ecdsa --must-staple \
--deploy-hook "certbot-ocsp-fetcher -o /var/cache/certbot-ocsp-fetcher" \
--key-type ecdsa
--cert-name miniflux.yourdomain.tld \
-d miniflux.yourdomain.tld

View File

@ -1,5 +1,4 @@
certbot certonly --webroot --webroot-path /srv/nginx --no-eff-email \
--key-type ecdsa --must-staple \
--deploy-hook "certbot-ocsp-fetcher -o /var/cache/certbot-ocsp-fetcher" \
--key-type ecdsa
--cert-name uptime.yourdomain.tld \
-d uptime.yourdomain.tld

View File

@ -13,5 +13,4 @@ server {
ssl_certificate /etc/letsencrypt/live/hostname.of.your.server/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/hostname.of.your.server/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/hostname.of.your.server/chain.pem;
ssl_stapling_file /var/cache/certbot-ocsp-fetcher/hostname.of.your.server.der;
}

View File

@ -9,7 +9,6 @@ server {
ssl_certificate /etc/letsencrypt/live/miniflux.yourdomain.tld/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/miniflux.yourdomain.tld/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/miniflux.yourdomain.tld/chain.pem;
ssl_stapling_file /var/cache/certbot-ocsp-fetcher/miniflux.yourdomain.tld.der;
include snippets/universal_paths.conf;
include snippets/hsts.conf;

View File

@ -11,7 +11,6 @@ server {
ssl_certificate /etc/letsencrypt/live/uptime.yourdomain.tld/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/uptime.yourdomain.tld/privkey.pem;
ssl_trusted_certificate /etc/letsencrypt/live/uptime.yourdomain.tld/chain.pem;
ssl_stapling_file /var/cache/certbot-ocsp-fetcher/uptime.yourdomain.tld.der;
include snippets/universal_paths.conf;
include snippets/hsts.conf;

View File

@ -54,16 +54,6 @@ unpriv curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/sys
chmod 644 /etc/systemd/system/nginx.service.d/override.conf
sudo systemctl daemon-reload
# Setup certbot-ocsp-fetcher
unpriv curl https://raw.githubusercontent.com/tomwassenberg/certbot-ocsp-fetcher/main/certbot-ocsp-fetcher | sudo tee /usr/local/bin/certbot-ocsp-fetcher
## Explicitly using /var/usrlocal/bin here because SELinux does not follow symlinks
sudo semanage fcontext -a -t bin_t /var/usrlocal/bin/certbot-ocsp-fetcher
sudo restorecon -Rv /var/usrlocal/bin/certbot-ocsp-fetcher
sudo chmod u+x /var/usrlocal/bin/certbot-ocsp-fetcher
sudo semanage fcontext -a -t httpd_config_t "/var/cache/certbot-ocsp-fetcher(/.*)?"
sudo mkdir -p /var/cache/certbot-ocsp-fetcher/
sudo chmod 755 /var/cache/certbot-ocsp-fetcher/
# Setup nginx-create-session-ticket-keys
unpriv curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/nginx-create-session-ticket-keys | sudo tee /usr/local/bin/nginx-create-session-ticket-keys
## Explicitly using /var/usrlocal/bin here because SELinux does not follow symlinks