From f789009268e43b700726ac604eac9770ad22641f Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Wed, 22 Mar 2023 22:55:45 +0000 Subject: [PATCH] cert check Signed-off-by: Jeff Carr --- Makefile | 4 ++++ gui/Makefile | 11 +++++++++++ nginx/check.lab.wit.org.conf | 3 ++- 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 gui/Makefile diff --git a/Makefile b/Makefile index 7b8d550..37cf0b4 100644 --- a/Makefile +++ b/Makefile @@ -36,3 +36,7 @@ status: renew-cert: service nginx stop acmetool --xlog.severity=debug reconcile + +log: + tail -f /var/log/nginx/access.log /var/log/nginx/error.log + journalctl -n 100 -f _SYSTEMD_UNIT=nginx.service diff --git a/gui/Makefile b/gui/Makefile new file mode 100644 index 0000000..5fcbf44 --- /dev/null +++ b/gui/Makefile @@ -0,0 +1,11 @@ +all: + # go get -v check.lab.wit.org/gui + # go install -v check.lab.wit.org/gui + +cert-check: + # openssl s_client -connect check.lab.wit.org:443 -showcerts + openssl s_client -CApath /etc/ssl/certs/ -connect check.lab.wit.org:443 -showcerts + + +cert-lets-check: + openssl s_client -CApath /etc/ssl/certs/ -connect valid-isrgrootx1.letsencrypt.org:443 -showcerts diff --git a/nginx/check.lab.wit.org.conf b/nginx/check.lab.wit.org.conf index 0e12a8c..e59f619 100644 --- a/nginx/check.lab.wit.org.conf +++ b/nginx/check.lab.wit.org.conf @@ -38,7 +38,8 @@ server { # include snippets/snakeoil.conf; - root /var/www/html; + # root /var/www/html; + root /home/check.jcarr.wit.com/; # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html;